W wildexodus Registered User. Local time Today, 16:31 Joined Feb 6, 2003 Messages 74 Mar 4, 2003 #1 What does #error mean when it comes up in a text box. Ive put some code into the control source of this text box to make it do a dlookup.
What does #error mean when it comes up in a text box. Ive put some code into the control source of this text box to make it do a dlookup.
FoFa Registered User. Local time Today, 10:31 Joined Jan 29, 2003 Messages 3,672 Mar 4, 2003 #2 Your Dlookup is not formatted correctly and returned an error DLOOKUP("columnname","tablename","criteria")
Your Dlookup is not formatted correctly and returned an error DLOOKUP("columnname","tablename","criteria")
W wildexodus Registered User. Local time Today, 16:31 Joined Feb 6, 2003 Messages 74 Mar 4, 2003 #3 =DLookUp("[UnitPrice]","[tbl1]","'[tbl1]![ Product]= '" & '[Forms]![frm1]![Forms]![text58].[Value]' & "'") I think it must be my criteria thats gone wrong. Have i got the last bit right? Its meant to reference a textbox (text58) on frm1 (form).
=DLookUp("[UnitPrice]","[tbl1]","'[tbl1]![ Product]= '" & '[Forms]![frm1]![Forms]![text58].[Value]' & "'") I think it must be my criteria thats gone wrong. Have i got the last bit right? Its meant to reference a textbox (text58) on frm1 (form).
FoFa Registered User. Local time Today, 10:31 Joined Jan 29, 2003 Messages 3,672 Mar 4, 2003 #4 Try: =DLookUp("[UnitPrice]","[tbl1]","[tbl1]![ Product]= " & [Forms]![frm1]![Forms]![text58].[Value])
Try: =DLookUp("[UnitPrice]","[tbl1]","[tbl1]![ Product]= " & [Forms]![frm1]![Forms]![text58].[Value])