Rather use a userdefined function. In a module (not a forms module), but you could place it where you've declared your public variable:
[tt]Public Function GetgPONumber() as <datatype>
GetgPONumber=gPONumber
End Function[/tt]
Then
"WHERE PurchaseOrderLineItems.PONumber=GetgPONumber()"
should work in the SQL view of the QBE. Substitute <datatype> with datatype of gPONumber.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.