Guest_imported
New member
- Jan 1, 1970
- 0
I'm still learning elementary VBA SQL coding syntax. But I'm not really clear on how Group By and Order By should appear in an SQL line. The code below is a sampling of the code that I am using. Could someone give me an example of how the GROUP BY and ORDER BY statments should be added (should they be inside or outside of the parenthesis, etc...)
Set Rs = Db.OpenRecordset("SELECT [Table Name].*
FROM [Table Name]
HAVING (([Table Name].Date
Between Eval('[Beginning Date]')
And Eval('[Ending Date]')))"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set Rs = Db.OpenRecordset("SELECT [Table Name].*
FROM [Table Name]
HAVING (([Table Name].Date
Between Eval('[Beginning Date]')
And Eval('[Ending Date]')))"