ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Controlling ODBC queries with VB variables (https://www.excelbanter.com/excel-programming/313923-controlling-odbc-queries-vbulletin-variables.html)

vehement

Controlling ODBC queries with VB variables
 

::bump:: any help would be appreciate

--
vehemen
-----------------------------------------------------------------------
vehement's Profile: http://www.excelforum.com/member.php...fo&userid=1541
View this thread: http://www.excelforum.com/showthread.php?threadid=27022


Erik BZ[_2_]

Controlling ODBC queries with VB variables
 
Try this:

' At the top of the sub
Dim Var As String
Var = "BEST"
'
'
'
"WHERE (`ORDER PROJECTIONS`.LB4= " & Var & ")"




"vehement" wrote in message
...

::bump:: any help would be appreciated


--
vehement
------------------------------------------------------------------------
vehement's Profile:
http://www.excelforum.com/member.php...o&userid=15417
View this thread: http://www.excelforum.com/showthread...hreadid=270221





All times are GMT +1. The time now is 05:17 AM.

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