Problem: Bad parameter type. Microsoft Office Excel is expecting a different kind of value than was provided.

Problem: Bad parameter type. Microsoft Office Excel is expecting a different kind of value than was provided.

Question relates to Parameters Query.
Two tables in our database relates to customer addresses. One holds the sold to addresses and the other holds ship to addresses. The relationship between those two tables is expressed through 2 fields, CUSTOMER_ID and SHIP_TO_ID.
Some of the SHIP_TO_IDs are numbers, some are text.
If run extract of information on a ship to, customer id combination from within MS Query it works fine. When I try to do the same operation based on parameters query I get this error:

Bad parameter type. Microsoft Office Excel is expecting a different kind of value than was provided.

Then

The following data range failed to refresh: Query from SQLForVM. Continue to refresh all?

Is there something I can do to change format of the parameter to accept text and numbers or just the criteria value?

Your help is greatly appreciated.


Solution: Bad parameter type. Microsoft Office Excel is expecting a different kind of value than was provided.

do a cint() or etc to convert the data to the correct before passing it to the query.

some more code wud help/…..relating to the passing the parameter query section.