I have a form Dispatch_Email_Query which contains a text box named Inv the contents of which is provided by the query used to create the form and is a 4 digit number matching an invoice.
I have a query [Query_By_Invoice_Dispatch] which takes a value as input (Invoice Number) and displays all references for that invoice number. As a stand along query it works fine with me typing in the invoice value. It asks for Forms!Dispatch_Email_Query!Inv
What I would like to do is have the results of the Query for the value contained in Inv on the Dispatch_Email_Query form appear in a text box on the Dispatch_Email_Query form
But I can't get it to work, is it possible to do ?
I am new at VBA background is in ASP what I am after is something like...
Select Reference From Dispatch Where Invoice = Inv
Any help anyone can give much appreciated
I have a query [Query_By_Invoice_Dispatch] which takes a value as input (Invoice Number) and displays all references for that invoice number. As a stand along query it works fine with me typing in the invoice value. It asks for Forms!Dispatch_Email_Query!Inv
What I would like to do is have the results of the Query for the value contained in Inv on the Dispatch_Email_Query form appear in a text box on the Dispatch_Email_Query form
But I can't get it to work, is it possible to do ?
I am new at VBA background is in ASP what I am after is something like...
Select Reference From Dispatch Where Invoice = Inv
Any help anyone can give much appreciated