Query to return lookup string value (1 Viewer)

mounty76

Registered User.
Local time
Yesterday, 22:17
Joined
Sep 14, 2017
Messages
341
Hello!

I have a lookup column in a db that looks up "Position" from a rank table, this then returns a value of the position (Rank) you choose.

I have made a search form using a query but when I search using a combo box that uses the rank table it returns a number....which is fine, but in the query it is returning any rank with that number.

Example I choose rank A from the combo box but it then returns A, BBA, CCA, AA, etc.

How can I make it return only the exact rank? Here is my expr from the query:

Expr3: [Position]=[Forms]![Main Form]![Combo51]

Any ideas most welcome :banghead:
 

mounty76

Registered User.
Local time
Yesterday, 22:17
Joined
Sep 14, 2017
Messages
341
Figured it out!!!

Expr3: [Position]=[Forms]![Main Form]![Combo51] Or [Forms]![Main Form]![Combo51] Is Null

Hopefully this might help someone else anyway.

Cheers!:D
 

Users who are viewing this thread

Top Bottom