Question : How to Resolve the Type Mismatch Error in Sql Query using VBA Macros

Hi, I am populating a Data from  MDB using VBA Macros. I am Facing a problem with the SQL Statement ERROR : Type Mismatch. But If i run the same code in Access Sql View , Its working properly .
How to solve This problem i attach my file for your clarification please guide me.
Thanks In Advance
Attachments:
 
my attachment file is here
 

Answer : How to Resolve the Type Mismatch Error in Sql Query using VBA Macros

OK. Try this instead

Replace this line

.CommandText = Array("select product...")

with

.CommandText = "select product..."

This worked for me when I tried it.
Random Solutions  
 
programming4us programming4us