P
Paul Kinville
ok, so this is working with a form that i put together. just
something quick and dirty that will date my application from the time
that it is first accessed. this will allow me to do some neat stuff
with counting days and weeks, and...whatever. so i have this little
bit of code that checks a date table and updates the date field in
that table with todays date the very first time the program is opened.
well, the first time that the form that auto-opens comes up.
Private Sub Form_Open(Cancel As Integer)
DoCmd.RunSQL ("UPDATE [date] SET [date].[date] = Now() WHERE
(((date.date) Is Null));")
End Sub
can anyone tell me why this isn't working? even when the table is
completely empty, it wont write the date to the table. anyone have
any thoughts on this? the first few times i tried to run it, it
worked fine, but then all of a sudden, it stopped working.
thanks in advance!!!
something quick and dirty that will date my application from the time
that it is first accessed. this will allow me to do some neat stuff
with counting days and weeks, and...whatever. so i have this little
bit of code that checks a date table and updates the date field in
that table with todays date the very first time the program is opened.
well, the first time that the form that auto-opens comes up.
Private Sub Form_Open(Cancel As Integer)
DoCmd.RunSQL ("UPDATE [date] SET [date].[date] = Now() WHERE
(((date.date) Is Null));")
End Sub
can anyone tell me why this isn't working? even when the table is
completely empty, it wont write the date to the table. anyone have
any thoughts on this? the first few times i tried to run it, it
worked fine, but then all of a sudden, it stopped working.
thanks in advance!!!