Pedigreeman
Registered User.
- Local time
- Today, 09:04
- Joined
- Mar 14, 2011
- Messages
- 57
=DLookUp("[Colour]","Colours","[Colour_ID] = " & [Colour_ID])
=DLookUp("[Colour]","Colours","[Colour_ID] = " & [Colour_ID])
This statement controls a textbox on a form. It looks up a colour ID number on the colours tale, and presents the name of that colour on the form. In many cases a colour ID has not been assigned to a particular record, in which case it returns an error. Rather than return an error, I want it to either do nothing, return a blank, or make the text box invisible. Whichever is easiest for a non-programmer.
How can I incorporate this response into the code?
Many thanks for your time
Mark
=DLookUp("[Colour]","Colours","[Colour_ID] = " & [Colour_ID])
This statement controls a textbox on a form. It looks up a colour ID number on the colours tale, and presents the name of that colour on the form. In many cases a colour ID has not been assigned to a particular record, in which case it returns an error. Rather than return an error, I want it to either do nothing, return a blank, or make the text box invisible. Whichever is easiest for a non-programmer.
How can I incorporate this response into the code?
Many thanks for your time
Mark