G
Guest
Hi,
I want a form to close after a certain amount of time, but cannot work out
the calculation to do it.
When the form opens, the current time is stored in dteOpen.
How do I subtract dteOpen from Time() to get 2 minutes? All I get is some
spurious number with loads of decimal places!
My On_Timer event contains an if statement:
If dteOpen - Time > 2 then
Docmd.close acform,"FrmPrint"
end if
I have tried allsorts, but to no avail.
Any takers?
Cheers,
Steve.
I want a form to close after a certain amount of time, but cannot work out
the calculation to do it.
When the form opens, the current time is stored in dteOpen.
How do I subtract dteOpen from Time() to get 2 minutes? All I get is some
spurious number with loads of decimal places!
My On_Timer event contains an if statement:
If dteOpen - Time > 2 then
Docmd.close acform,"FrmPrint"
end if
I have tried allsorts, but to no avail.
Any takers?
Cheers,
Steve.