Hi
I am running three qrys to enter dates into three combo boxs.
1 box is for the dates in month format.
01/01/03 to January 2003
2 box is for the dates in Year format.
01/01/03 to 2003
3 box is for the dates in Quarter format.
01/01/03 to Q1 2003
07/01/03 to Q3 2003
The following work for the month and year formats but I can't seem to get Quarters working.
strSQL = "SELECT Format([Date],'mmmm yyyy') AS [Months] FROM [MONTHS];"
strSQL = strSQL = "SELECT Format([Date],'yyyy') AS [Years] FROM [YEARS];"
***Problem***
strSQL = "SELECT Format([Date],'q yyyy') AS [Quarters], FROM [QUARTERS];"
***Error***
error 3141, select statement has reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
does anyone know the proper way to format this
thanks
aine
I am running three qrys to enter dates into three combo boxs.
1 box is for the dates in month format.
01/01/03 to January 2003
2 box is for the dates in Year format.
01/01/03 to 2003
3 box is for the dates in Quarter format.
01/01/03 to Q1 2003
07/01/03 to Q3 2003
The following work for the month and year formats but I can't seem to get Quarters working.
strSQL = "SELECT Format([Date],'mmmm yyyy') AS [Months] FROM [MONTHS];"
strSQL = strSQL = "SELECT Format([Date],'yyyy') AS [Years] FROM [YEARS];"
***Problem***
strSQL = "SELECT Format([Date],'q yyyy') AS [Quarters], FROM [QUARTERS];"
***Error***
error 3141, select statement has reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
does anyone know the proper way to format this
thanks
aine