Unless you are using an old version of Access, you should change these to the newer RunCommand -- it's also a lot easier to understand.
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
becomes
RunCommand...
Try changing your DLookup to read:
DLookup("[Booking]", "tblHolidays", "[Booking] = #" & Format$(varStartDate, "mm/dd/yyyy") & "#")
The error you are receiving simply informs you that there is *something* wrong within the DLookup call -- either the field you reference doesn't exist, the table...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.