I have created a button to do a saved import, and would like Access to then immediately open the form that I imported the information to. I can't figure out the right code though. Since it is the newest entry, therefore the highest ID number, I figured I could use a code that retrieve the max ID number but I can't quite figure it out. Any help would be greatly appreciated!
Private Sub Command125_Click()
DoCmd.RunSavedImportExport "New Candidate Import"
DoCmd.OpenForm ("Candidate Details",,,[max(ID)],,,)
End Sub