I'm dealing with a Dlookup malfunction, and I've tried everything I can think of with no success.
So I have a combobox that has the ID and grade name as columns. The ID is numerical while the grade name is a mixture of numbers, letters, and a dash. It's trying to pull a decimal from the table to display on the form. I have no problem doing this IF the ID column is bound as opposed to the grade name.
I currently have
=DLookUp("[AD Max]","Grades New","[ID] =" & [Combo24])
which works if the ID column is bound and stored in the table.
However, if the grade name (e.g. B130-2380) is bound, then the field blinks and says #error.
I've tried
=DLookUp("[AD Max]","Grades New","[ID] ='" & [Combo24] & "'")
with no success, and
=DLookUp("[AD Max]","Grades New","'[ID] =" & [Combo24] & "'")
doesn't work either.
Can someone figure out what I'm doing wrong and give me some suggestions? Thank you.