I am having a problem with dLookup, I have a Table called detail two of the fields are called product and desc. on my form I have a text box called Prod ref, that I type the product number in called Prod ref and have a button that when clicked it should return the desc from the detail table but its not !?! Im am useing this code :
Desclook = DLookup("[Desc]", "Detail", "[product] = " & Prod_Ref)
Description.Value = Desclook
Debug.Print Desclook
As you can see i am calling debug to find out what it is returning and it keeps coming up with Null.
Some times I will get a run time error but I haven't writen it down
Please can any one help me
Thanks
Desclook = DLookup("[Desc]", "Detail", "[product] = " & Prod_Ref)
Description.Value = Desclook
Debug.Print Desclook
As you can see i am calling debug to find out what it is returning and it keeps coming up with Null.
Some times I will get a run time error but I haven't writen it down
Please can any one help me
Thanks