Bobadopolis
No I can't fix it dammit!
- Local time
- Today, 14:39
- Joined
- Oct 6, 2005
- Messages
- 77
Hi everyone.
I appreciate that there are many threads on this subject but I have searched and puzzled and become desperate!!
I have an input form that automatically sets any blank fields (mostly combos) to "Not Available" if the user does not enter any data into them. On the form are some cascading combos. If the child combo (Technology) is left blank I need some code to make the "not available" ID correct depending on the value of the parent combo (Range). For this I am using a DLookUp (embedded in an IIf):
Basically it looks up the "Not Available" ID for the Range that is the Range in the combo and where the text field [Technology] is equal to "Not Available".
However this gives the error "Data type mismatch in criteria or expression".
Any ideas? I'm sure it's a minor error but I'm really stumped!!
Thanks in advance,
Bobadopolis
I appreciate that there are many threads on this subject but I have searched and puzzled and become desperate!!
I have an input form that automatically sets any blank fields (mostly combos) to "Not Available" if the user does not enter any data into them. On the form are some cascading combos. If the child combo (Technology) is left blank I need some code to make the "not available" ID correct depending on the value of the parent combo (Range). For this I am using a DLookUp (embedded in an IIf):
Code:
DLookup("TechnologyID", "tblTechnology", "[RangeID] = '" & ![cboRange] & "' And [Technology] = '" & "Not Available" & " '")
Basically it looks up the "Not Available" ID for the Range that is the Range in the combo and where the text field [Technology] is equal to "Not Available".
However this gives the error "Data type mismatch in criteria or expression".
Any ideas? I'm sure it's a minor error but I'm really stumped!!
Thanks in advance,
Bobadopolis