The following bit of code is the first part of a long SQL statement to illustrate the problem.
Ballssql = "SELECT dbo_Transaction_Table.Account_Number, dbo_Master_Accounts.FirstName, _"
Ballssql = Ballssql + "dbo_Master_Accounts.LastName, dbo_Transaction_Table.Date_of_Transaction, _"
Ballssql = Ballssql + "Format([dbo_Transaction_Table]![Date_of_Transaction],"ddd") AS Dayofwk, _"
The problem is that the Format function does not compile, and neither do the other format functions in the rest of the sql. I looked and format is supposed to work in VBA, but I must be missing something. Copied the SQL out of the QBE grid.
Using ACCESS 10, Wondows 7 Pro
Thanks in advance
jpl
Ballssql = "SELECT dbo_Transaction_Table.Account_Number, dbo_Master_Accounts.FirstName, _"
Ballssql = Ballssql + "dbo_Master_Accounts.LastName, dbo_Transaction_Table.Date_of_Transaction, _"
Ballssql = Ballssql + "Format([dbo_Transaction_Table]![Date_of_Transaction],"ddd") AS Dayofwk, _"
The problem is that the Format function does not compile, and neither do the other format functions in the rest of the sql. I looked and format is supposed to work in VBA, but I must be missing something. Copied the SQL out of the QBE grid.
Using ACCESS 10, Wondows 7 Pro
Thanks in advance
jpl