Any help would be appreciated. I'm trying to keep a log of activity in a database. I have a text box for users to document their activity and I'm trying to time and date stamp each entry, but I keep getting a syntax error. I'm pretty sure it's something I'm doing wrong with date and time. I'm using the Date() and Time() function to get a long time and short date. Here's some code:
Sql = "Insert into Modifications(Day, Time, Descrip)
Values( '" & Date() & "' , '" & Time() & "' , '" & Me.description & "');"
db.Execute (Sql)
I think I need some #'s but I haven't been able to figure out where.
Thanks.
Sql = "Insert into Modifications(Day, Time, Descrip)
Values( '" & Date() & "' , '" & Time() & "' , '" & Me.description & "');"
db.Execute (Sql)
I think I need some #'s but I haven't been able to figure out where.
Thanks.