ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SQL statement in vba (https://www.excelbanter.com/excel-programming/330412-sql-statement-vba.html)

Alvin Hansen[_2_]

SQL statement in vba
 
Hi

I sahll use a variable in my statement like
where [country] like 'usa'
but insted of USA i shall use a variable have try wit &
but can't get it to work.

Hope some one can help

Regards alvin


Alvin Hansen[_2_]

SQL statement in vba
 
Hi
I have found out why just forget [] around country

Alvin


"Alvin Hansen" skrev:

Hi

I sahll use a variable in my statement like
where [country] like 'usa'
but insted of USA i shall use a variable have try wit &
but can't get it to work.

Hope some one can help

Regards alvin



All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com