Hi,
In a form I have set up (Form1) I type a Case ID into a text box and from this 4 other text boxes need to be populated, this info is pulled from a table I have setup. Within the table there are Case ID, Investigation, Customer, Business and Account columns (all text columns apart from Case ID which is number)
I've tried using a dlookup formula to reference the value entered in the Case ID text box called txtcaseid, to look in the the table called tblwarehouse and output one of the results in the columns eg Investigation. The investigation result text box is called txtinv. Formula I have tried is below.
=dlookup("[Investigation]","tblwarehouse","[CaseID]='" & Txtinv & "'")
I am getting a #type! error.
I'm still quite new to Access. Any help would be appreciated.
Thanks in advance
James
In a form I have set up (Form1) I type a Case ID into a text box and from this 4 other text boxes need to be populated, this info is pulled from a table I have setup. Within the table there are Case ID, Investigation, Customer, Business and Account columns (all text columns apart from Case ID which is number)
I've tried using a dlookup formula to reference the value entered in the Case ID text box called txtcaseid, to look in the the table called tblwarehouse and output one of the results in the columns eg Investigation. The investigation result text box is called txtinv. Formula I have tried is below.
=dlookup("[Investigation]","tblwarehouse","[CaseID]='" & Txtinv & "'")
I am getting a #type! error.
I'm still quite new to Access. Any help would be appreciated.
Thanks in advance
James