Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
SQL Select statement with Date as
I'm pulling data into Excel using a SQL statement in VBA. I'd like to
pull an [updatedate] field and have it formatted in the format yyyy - mm. I'm not sure how to do this however. I basically have this set up right now. Statement = "SELECT Insertby, Campaign, Resolution1, " & _ "Resolution2, Resolution3, Stage, MonthlyCost, " & _ "ProspectId " & _ I'd like to add into this something along the lines of Format(UpdateDate,"yyyy - mm") AS UpdateMnthShrt I'm not sure how to set the UpdateDate portion of the statement. Any help would be GREATLY appreciated. Thanks Paul |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Select Case Statement | Excel Worksheet Functions | |||
If Statement to select a letter | Excel Worksheet Functions | |||
Adding SQL Select Statement | Excel Programming | |||
Wildcard character with Select Statement | Excel Programming | |||
Convert If..Else to Select Case Statement. | Excel Programming |