Ok... I am lost. I know how to create a querydef, but I have never passed a string of variables to select multiple records before. I tried creating an array, but even though the array populated, the querydef would not recognize it. I tried creating a string, but it recognizes it as a field and not a value within the field... so I know I am doing something wrong and its probably something easy...so I am reaching out for help.
I know in a query you can do something like this
Select * from table where statevalue in("FL","VA","TN")
So when I set those values to a string, why would it recognize it as a field when I put it like this
Set qdf = db.CreateQueryDef("qrystcompare","Select Vamt from Stbl where Stcode in(str)")
I know in a query you can do something like this
Select * from table where statevalue in("FL","VA","TN")
So when I set those values to a string, why would it recognize it as a field when I put it like this
Set qdf = db.CreateQueryDef("qrystcompare","Select Vamt from Stbl where Stcode in(str)")