D
Doug
Hi,
I'm trying to insert today's date into a field every time
the code is run. I have the following code, which
currently doesn't do anything when run.
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblLastUpdate")
rst.AddNew
rst("lastupdate") = Date ()
rst.Close
dbs.Close
LastUpdate is the name of the field.
Thanks in advance for your help.
Doug
I'm trying to insert today's date into a field every time
the code is run. I have the following code, which
currently doesn't do anything when run.
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblLastUpdate")
rst.AddNew
rst("lastupdate") = Date ()
rst.Close
dbs.Close
LastUpdate is the name of the field.
Thanks in advance for your help.
Doug