Hello,
I have been trying to play with this for several days now and can not get it to work right. I am trying to use the DLookUp function (on my form) so that I can type in one item such as an ID number and it 2 seperate text or combo boxes it will display a name in one box and in the other box an address. I keep trying to use the DLookUp function but I cant seem to get it to work.
I dont understand if I need to put it in every single box, or only one box, or only on the form??
Any help would be great!
Here is what I have so far,
From one thing I read it said you had to declare a value. So i used xVal to equal a value and then I tried to use xVal to equal another box, then I tried to use that value in the combo12 box to lookup another value. I hope im explaining that right.
All i know is im lost. Because everything I read all it says, "is oh yeah just put,
=DLOOKUP (Field, Domain, Criteria)
And off you go!! Well that is not working!
I have been trying to play with this for several days now and can not get it to work right. I am trying to use the DLookUp function (on my form) so that I can type in one item such as an ID number and it 2 seperate text or combo boxes it will display a name in one box and in the other box an address. I keep trying to use the DLookUp function but I cant seem to get it to work.
I dont understand if I need to put it in every single box, or only one box, or only on the form??
Any help would be great!
Here is what I have so far,
Code:
Private Sub Combo8_AfterUpdate()
xVal = Value
xVal = DLookup("FAddress", "FAddressTest", "Combo8")
xVal = Combo12
End Sub
All i know is im lost. Because everything I read all it says, "is oh yeah just put,
=DLOOKUP (Field, Domain, Criteria)
And off you go!! Well that is not working!
Comment