AndyCompanyZ
Registered User.
- Local time
- Today, 13:39
- Joined
- Mar 24, 2011
- Messages
- 223
I have posted this on another access forum but thought i'd try here too.
I am writing some code for a combobox on click event. I need to check the date that has been selected in the combobox against a table (tblEventDelegates) that holds a list of delegates who have been scheduled onto events with the dates of that event. I need to see if the event that had been selected in the combobox (cmboEvents) is more or less than 14 days from any event that the dlegate has already been scheduled on. I have the following so far:
If DLookup("[EventStartDate]", "tblEventDelegate", "DelegateID = " & Me.DelegateID And "EventStartDate = " & DateAdd("d", -14, [Me.txtEventStart])) Then
This is to see if the date is less than 14 days before the event stored in the tblEventDelegate. But this says it "can't find the field `¦1` referred in your expression". I have no idea what that means or which field it refers to.
I am writing some code for a combobox on click event. I need to check the date that has been selected in the combobox against a table (tblEventDelegates) that holds a list of delegates who have been scheduled onto events with the dates of that event. I need to see if the event that had been selected in the combobox (cmboEvents) is more or less than 14 days from any event that the dlegate has already been scheduled on. I have the following so far:
If DLookup("[EventStartDate]", "tblEventDelegate", "DelegateID = " & Me.DelegateID And "EventStartDate = " & DateAdd("d", -14, [Me.txtEventStart])) Then
This is to see if the date is less than 14 days before the event stored in the tblEventDelegate. But this says it "can't find the field `¦1` referred in your expression". I have no idea what that means or which field it refers to.