When the database opens the form frmlog automatically opens which then automatically fills in the username / date and time inwhich they opened the database. Currently the timer is set so that the form will then close on timer and open the splash screen and the user can continue. The problem is that it is needed that once the database closes the field [out] will fill in for that user. Is this possible? the table is: tbllog
fields: ID - Primary key and autonumber
User - Text
Date - Date/Time Short Date format
In - Date/Time Long time format
Out - Date/Time long time format
On Open of frmlog:
me.User = environ("username")
me.data = now()
me.in = time
Which is working correctly.
the problem is with the me.out
I tried to put on timer of frmlog:
docmd.minimize
docmd.openform "frmSplash"
docmd.cancelevent (tried with and without cancel event)
Which would leave the form open then on the on close so when the database closes
Me.out = time
But either with or without cancelevent, the database just goes in loops when opening frmsplash.. Any ideas???
fields: ID - Primary key and autonumber
User - Text
Date - Date/Time Short Date format
In - Date/Time Long time format
Out - Date/Time long time format
On Open of frmlog:
me.User = environ("username")
me.data = now()
me.in = time
Which is working correctly.
the problem is with the me.out
I tried to put on timer of frmlog:
docmd.minimize
docmd.openform "frmSplash"
docmd.cancelevent (tried with and without cancel event)
Which would leave the form open then on the on close so when the database closes
Me.out = time
But either with or without cancelevent, the database just goes in loops when opening frmsplash.. Any ideas???