Walshie1987
Technical User
- Oct 5, 2006
- 100
Hi, just wondered how I would put the following into code:
(I know how do to the Dlookup part)
If the value I enter in a textbox is not found during a dlookup then leave the value as it is, if it is found in the dlookup then enter the dlookup value.
e.g
If I put "Test" into a text box and dlookup cannot find "Test" my table, then just leave the word "Test" in the text box.
If the word "Test" was found in my table then put the info from my table into the text box instead of the word "Test"
Thanks alot
Chris
(I know how do to the Dlookup part)
If the value I enter in a textbox is not found during a dlookup then leave the value as it is, if it is found in the dlookup then enter the dlookup value.
e.g
If I put "Test" into a text box and dlookup cannot find "Test" my table, then just leave the word "Test" in the text box.
If the word "Test" was found in my table then put the info from my table into the text box instead of the word "Test"
Thanks alot
Chris