Hi,
I'm trying to get a dlookup to work on an access 97 form. The filed i'm looking for is called "AFSM Code" and it's in table "qlinks1", the field i'm using for the lookup in the form is called "Referral to name" and it's corresponding field in the table is "FPM/FPO Code".
Here's my code:
However i'm getting a Run time 438 error. The only thing i can think of is that the field i'm looking up in the table is a text field that stores a number and/or this field ("FPM/FPO Code") is also used as the bound column in "Referral to name".
Hope this makes sense, can anybody help?
Thanks
I'm trying to get a dlookup to work on an access 97 form. The filed i'm looking for is called "AFSM Code" and it's in table "qlinks1", the field i'm using for the lookup in the form is called "Referral to name" and it's corresponding field in the table is "FPM/FPO Code".
Here's my code:
Code:
Me.AFSM = DLookup("[AFSM Code]", "qlinks1", "[FPM/FPO Code]= '" & Me.Referral_To_Name & "'")
However i'm getting a Run time 438 error. The only thing i can think of is that the field i'm looking up in the table is a text field that stores a number and/or this field ("FPM/FPO Code") is also used as the bound column in "Referral to name".
Hope this makes sense, can anybody help?
Thanks