Where to start

P

Paul B.

Hello all,

I need to have access automatically tell the user that a vehicle is overdue
and I am not sure how to proceed.

I have a field 'ReturnDate' in the 'tblVehicles' and what I need to do is
when the user opens the database, run some sort of check to see if any
vehicles that should have been returned the day before, were not. The
'ReturnDate' field should be empty / null if the vehicle was returned. If it
will help, the 'Disposition' for these vehicles would be set to 'Out of
Service'.

Thanks in advance for your ideas.....


Cheers
 
T

tina

one way to do it is to write a query to pull the overdue vehicle records,
i'll call it qryOverdueVehicles. create an autoexec macro to check the query
and display a message if necessary, as

Macro Name: AutoExec
Condition: DCount(1, "qryOverdueVehicles","[ReturnDate] < #" & Date() &
"#") >= 1
Action: Msgbox
Message: There are overdue vehicles in the database.

instead of, or in addition to, the msgbox, you could automatically open (or
print) a report bound to qryOverdueVehicles.

hth
 
P

Paul B.

Thanks Tina, that gives me a start....

Cheers


tina said:
one way to do it is to write a query to pull the overdue vehicle records,
i'll call it qryOverdueVehicles. create an autoexec macro to check the query
and display a message if necessary, as

Macro Name: AutoExec
Condition: DCount(1, "qryOverdueVehicles","[ReturnDate] < #" & Date() &
"#") >= 1
Action: Msgbox
Message: There are overdue vehicles in the database.

instead of, or in addition to, the msgbox, you could automatically open (or
print) a report bound to qryOverdueVehicles.

hth


Paul B. said:
Hello all,

I need to have access automatically tell the user that a vehicle is overdue
and I am not sure how to proceed.

I have a field 'ReturnDate' in the 'tblVehicles' and what I need to do is
when the user opens the database, run some sort of check to see if any
vehicles that should have been returned the day before, were not. The
'ReturnDate' field should be empty / null if the vehicle was returned. If it
will help, the 'Disposition' for these vehicles would be set to 'Out of
Service'.

Thanks in advance for your ideas.....


Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top