Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a String in Select As 1

Status
Not open for further replies.

tbonehwd

IS-IT--Management
Jul 28, 2005
45
US
When using sql in vba I want to for example Select x As strTEST. I tried:

Dim strTEST As String
strTEST="12/04/2005"

Select Somthing As "& strTEST &"

Can this be done? When I try I get an Error 3141

Thanks,

TboneHwd
 
Select Somthing As [" & strTEST & " ]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top