Mine works fine... but possibly should be slightly different.
I just simply need to ADD a record to this table... so currently I have it SELECT * from the Table and the WHERE clause will never be found so no records are contained in the recordset. Then I add the Record.
Is there a better way to simply add the record without it having to attempt to add records into a recordset.
Dim dbs As Database, rst As DAO.Recordset
Set dbs = CurrentDb
strSQL = "SELECT * FROM [J-H_DockDatabaseHistory] WHERE [DOCKNUMBER] = '1000000'"
Set rst = dbs.OpenRecordset(strSQL)
rst.AddNew
blah,blah,
rst.Update
Thanks,
John
I just simply need to ADD a record to this table... so currently I have it SELECT * from the Table and the WHERE clause will never be found so no records are contained in the recordset. Then I add the Record.
Is there a better way to simply add the record without it having to attempt to add records into a recordset.
Dim dbs As Database, rst As DAO.Recordset
Set dbs = CurrentDb
strSQL = "SELECT * FROM [J-H_DockDatabaseHistory] WHERE [DOCKNUMBER] = '1000000'"
Set rst = dbs.OpenRecordset(strSQL)
rst.AddNew
blah,blah,
rst.Update
Thanks,
John