Short Date: dd/MM/yyyy
LOng Date: dd MMMM, yyyy.
In my Access Database, I have a table "LoginLogReport" with the following fields:
User ID: (Number)
Date: (Date/Time, Short Date)
Time: (Date/Time, Long Time)
Type: (Short Text, 25)
In a login form, in the click event of a Login command button, I am using the following code alongwith the other codelines.
Expand|Select|Wrap|Line Numbers
- strSQL = "INSERT INTO LoginLogReport (UserID, [Date], [Time], Type) " & _
- "VALUES (" & Me.cboUser & ", #" & Date & "#, #" & Time & "#, 'Login')"
- CurrentDb.Execute strSQL, dbFailOnError
Please help as soon as possible. Thank you.