A
Acie
Here is my problem:
I'm building a Select SQL statement and storing it into a
string variable. I'm including the table name as a
variable, and when I display the string via a msgbox and
when i store in into a textbox, it looks great. (I copied
into a text box, so that I can copy the evaluated select
stmt(CTL-V) and paste it on the Access screen to test it.
Here is the weird part. The SQL stmt works perfectly on
the SQL screen, however within the VBA code it gives me a
Type Mismatch Run-Time Error '13'. I am puzzled. I
checked the join fields and they all match(data type).
FYI The string has abut two parameters that are embedded
in several places.. I use Chr(34) as the quotes..,
etc..againwhen the variable is displayed it looks perfect,
and I test it via copying it and it works fine..
Oh before I had the table name hardcoded and it worked
fine in the VBA code. After I converted teh sql to utilize
variables..it stopped working.
Any ideas/thoughts?
thanks,
Acie
I'm building a Select SQL statement and storing it into a
string variable. I'm including the table name as a
variable, and when I display the string via a msgbox and
when i store in into a textbox, it looks great. (I copied
into a text box, so that I can copy the evaluated select
stmt(CTL-V) and paste it on the Access screen to test it.
Here is the weird part. The SQL stmt works perfectly on
the SQL screen, however within the VBA code it gives me a
Type Mismatch Run-Time Error '13'. I am puzzled. I
checked the join fields and they all match(data type).
FYI The string has abut two parameters that are embedded
in several places.. I use Chr(34) as the quotes..,
etc..againwhen the variable is displayed it looks perfect,
and I test it via copying it and it works fine..
Oh before I had the table name hardcoded and it worked
fine in the VBA code. After I converted teh sql to utilize
variables..it stopped working.
Any ideas/thoughts?
thanks,
Acie