I have a list box that I can filter serial numbers with and it works great. Once the serial number is found and printed, I update the "printed" Boolean field with TRUE.
Code:
CurrentDb.Execute "UPDATE TblWalker SET Printed = true WHERE ID = " & Forms!FRM_SearchMulti!SearchResults.Column(0)
How do I update the "Room" field at the same time? I can't get my code to insert into the filtered record, or the current record. It does however insert into a new record.
Code:
DoCmd.RunSQL ("INSERT INTO tblWalker ([room]) VALUES (room.value)")
I want to use CurrentDb.Execute for this but no love either. Any help is appreciated.