I need help with this code:
Set db = CurrentDb()
query = "SELECT max(tblLicensingNotes.notesid) FROM tblLicensingNotes"
Set rs = db.OpenRecordset(query)
intNotesID = rs![NotesID].Value + 1
It errors on teh last line: Object variable or With block variable not set (Error 91)
Set db = CurrentDb()
query = "SELECT max(tblLicensingNotes.notesid) FROM tblLicensingNotes"
Set rs = db.OpenRecordset(query)
intNotesID = rs![NotesID].Value + 1
It errors on teh last line: Object variable or With block variable not set (Error 91)