E
Eomer
I want to run a query using "strCustPartNumber" as my
criterion. The program has the following:
I have dimmed the string in the Global module as follows:
Global strCustPartNumber As String
the form module (VBA code) has:
strCustPartNumber = .Fields("CustPartNumber")
I can get the correct answer in the immediate window but
whenever I try to put an expression in the criterion box,
either it comes up as zero records to append or the
Parameter Input box pops up and I have to manually put in
the value.
I have tried using = [strCustPartNumber], (), "", "[]"
etc. but I just can not get it to recognize that
strCustPartNumber is a variable and use the correct value
(the query runs great if I manually put in the code, but
I need to automate this!)
What is the proper syntax to make this work?
As always - thank you very much!
criterion. The program has the following:
I have dimmed the string in the Global module as follows:
Global strCustPartNumber As String
the form module (VBA code) has:
strCustPartNumber = .Fields("CustPartNumber")
I can get the correct answer in the immediate window but
whenever I try to put an expression in the criterion box,
either it comes up as zero records to append or the
Parameter Input box pops up and I have to manually put in
the value.
I have tried using = [strCustPartNumber], (), "", "[]"
etc. but I just can not get it to recognize that
strCustPartNumber is a variable and use the correct value
(the query runs great if I manually put in the code, but
I need to automate this!)
What is the proper syntax to make this work?
As always - thank you very much!