comconrk
Programmer
- Jul 15, 2002
- 55
I have been using a simple select statement in a VBA macro
querystring = _
"SELECT Project_Number,Desc,Designer,Product_Type,On_Sale_Date,Product_Code,Pages FROM Filemaker WHERE (Project_Number=" & Proj_Truncated & ")"
It has been working very well until now, when the Project_Number has now been changed from numeric to alpha in the Access database. When I did an Excel Query and looked at the SQL code I did see that it put single quotes around the Project Number. However, that does not seem to work when I use the above statement. Since it has been working well, I am not certain what to do from here. I would appreciate any help.
Thanks very much
querystring = _
"SELECT Project_Number,Desc,Designer,Product_Type,On_Sale_Date,Product_Code,Pages FROM Filemaker WHERE (Project_Number=" & Proj_Truncated & ")"
It has been working very well until now, when the Project_Number has now been changed from numeric to alpha in the Access database. When I did an Excel Query and looked at the SQL code I did see that it put single quotes around the Project Number. However, that does not seem to work when I use the above statement. Since it has been working well, I am not certain what to do from here. I would appreciate any help.
Thanks very much