M
MarMo
Hi ,
I'm trying to figure out what is the best way to pass criteria to a
query and then export this query.
I'm looping through a query to get the criteria and the result is put
into the strSQLExtrCLNR variable.
strSQLExtrCLNR = strSQLExtrCLNR & "," & ![ExtrClientNr]
The outcome could be : "22000,35000,36000,36001"
I use the following string to query (WHERE .... IN("...."):
strSQLInvoices = "SELECT * FROM QryInvoiceOrders WHERE [ClientNr] IN("
& strSQLExtrCLNR & ")"
How can i export this query , because i tried to open this in a
openquery statement but i get an error.
Is it better to use the [Clientnr]=22000 OR [ClientNr]= 35000 .......
and then export it.
Thanks for helping me.
Mario
I'm trying to figure out what is the best way to pass criteria to a
query and then export this query.
I'm looping through a query to get the criteria and the result is put
into the strSQLExtrCLNR variable.
strSQLExtrCLNR = strSQLExtrCLNR & "," & ![ExtrClientNr]
The outcome could be : "22000,35000,36000,36001"
I use the following string to query (WHERE .... IN("...."):
strSQLInvoices = "SELECT * FROM QryInvoiceOrders WHERE [ClientNr] IN("
& strSQLExtrCLNR & ")"
How can i export this query , because i tried to open this in a
openquery statement but i get an error.
Is it better to use the [Clientnr]=22000 OR [ClientNr]= 35000 .......
and then export it.
Thanks for helping me.
Mario