ScrmingWhisprs
I <3 Coffee Milk.
- Local time
- Today, 10:57
- Joined
- Jun 29, 2006
- Messages
- 156
I have a Registration form for an Event Management database, and there are a couple of textboxes that use the DLookup function.
The first one named [EventLocation], which is not visible, has the following row source:
This brings back the ID number of a Location from the Location table, based on the event selected in the [Event] combobox.
The second textbox named [tboLocation] with Rowsource:
Looks at [EventLocation] and returns the Location name that matches the ID number from the Location table.
The problem is, until an Event is selected, tboLocation displays #Error. What can I do to display nothing until an Event is selected?
Let me know if you need more clarification. Thanks in advance.
ScrmingWhisprs
The first one named [EventLocation], which is not visible, has the following row source:
Code:
=DLookUp("[Location]","tblEvents","[EventID] =" & [Event])
The second textbox named [tboLocation] with Rowsource:
Code:
=DLookUp("[LocationName]","tblLocation","[LocationID] =" & [EventLocation])
The problem is, until an Event is selected, tboLocation displays #Error. What can I do to display nothing until an Event is selected?
Let me know if you need more clarification. Thanks in advance.
ScrmingWhisprs