How can I stop access 2016 to stop wiping the data from previously saved records?
Any improvements/suggestions are greatly appreciated!
(This is the best I could do with my limited knowledge)
There are the following fields: Text7 ,ID, UPK, CheckTime. The data to be saved back to the table is only the checktime field for each scanned item.
Table:
-ID Autonumber | -UPK Number | -CheckTime Date/Time |-Text7 (is the only unbound control)
I need to be able to do this:
- scan a value on Text7
- after the update search the table for this value (which is already) in the table see the Text7_AfterUpdate event below
- Text7_AfterUpdate event will populate the data into the form
- Automatically calculate Now() and add it to the CheckTime field (this field is empty in the table)
- Save the record
- Clear all txtboxes
- Set focus back on Text7
- Move to the last empty record and be ready to receive the next scan
**EDITS thank you @Jiggles32 **
NOTE: scrapped the VBA code too cumbersome for my knowledge level, tried @Minty's suggestion and went with a query
SaveAllRecords
function is supposed to do. The code that is posted basically does nothing.If Me.Dirty [no expression] Then
. All that code appears to do is set a variable calledCheckin_Time
equal to""
(which it does regardless of the previous statement). Would you kindly clarify what you are attempting to do with this? To be more specific, you mentioned you want item number 5. to "Save the record", what record and to where? What does your table structure look like? – Jiggles32