B
Brig
I apologize if this was posted previously. I searched a string of posts
regarding dlookup but did not find the answer I am looking for.
What I am trying to do is to match 2 criterias to get the value instead of
just one.
Here is a sample:
Table xyz
A B C
1 2 3
4 5 6
On the form I got unbound controls: uA, uB, uC
If in the uA and uB matched what is on the table A and B respectively, then
it will bring the C value in the uC
If uA = 1 And uB = 2 Then uC = 3
If uA = 4 And uB = 5 Then uC = 6
Basically, this is the dlookup string I entered in the controlsource of uC
=Dlookup("C", "xyz", "[A]=[uA]" And " = [uB]")
I don't get any error at all but I don't get any values too.
Any help will be greatly appreciated.
Thank you very much.
regarding dlookup but did not find the answer I am looking for.
What I am trying to do is to match 2 criterias to get the value instead of
just one.
Here is a sample:
Table xyz
A B C
1 2 3
4 5 6
On the form I got unbound controls: uA, uB, uC
If in the uA and uB matched what is on the table A and B respectively, then
it will bring the C value in the uC
If uA = 1 And uB = 2 Then uC = 3
If uA = 4 And uB = 5 Then uC = 6
Basically, this is the dlookup string I entered in the controlsource of uC
=Dlookup("C", "xyz", "[A]=[uA]" And " = [uB]")
I don't get any error at all but I don't get any values too.
Any help will be greatly appreciated.
Thank you very much.