Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() wrote in message ... On Nov 7, 1:39 pm, Michael wrote: Assuming the sheet you want is the first sheet in your workbook, myvar=myvar = Sheets(1).Name Then substitute your variable: " " & "WHERE Projects.Project_Number="& myvar & ";" -- If this posting was helpful, please click on the Yes button. Regards, Michael Arch. - Show quoted text - I get the error that characters are found at the end of the SQL statement Drop the semicolon at the end. Tim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
A bit of Syntax help please... | Excel Programming | |||
Need syntax help! | Excel Programming | |||
VBA syntax | Excel Discussion (Misc queries) | |||
Syntax | Excel Programming | |||
syntax for a sub ( ) | Excel Programming |