Adam McReynolds
Registered User.
- Local time
- Yesterday, 19:54
- Joined
- Aug 6, 2012
- Messages
- 129
I need to use DMax to open the form on the last record based on the serial number. This code is what I have to open the form currently, but I want only the latest record related to the serial number:
Here is what I tried and it did not work:
Any help would be appreciated.
Code:
DoCmd.OpenForm "Form1", , , "incoming_module_sn = '" & Me.txt_sn & "'"
Here is what I tried and it did not work:
Code:
DoCmd.OpenForm "Form1", , , DMax("incoming_module_sn", "tbl_module_repairs", "incoming_module_sn = '" & Me.txt_sn & "'")
Any help would be appreciated.