Hi guys, its been awhile. I inherited a database thats an MDB and I need to get it on to sql server but I am having problem with this query, can anyone help please. Its suppose to give you the month and year when you click on it, you just put that in and up come the results on a query or report, now I have something similar to this but the code is very different.SELECT Format$([Main Table].Date,'mmmm yyyy') AS [Date By Month], [Main Table].[Action Type], Sum([Main Table].[Action Type]) AS [Main Table_Action Type]FROM [Action Type] INNER JOIN [Main Table] ON [Action Type].ID = [Main Table].[Action Type]GROUP BY Format$([Main Table].Date,'mmmm yyyy'), [Main Table].[Action Type]HAVING (((Format$([Main Table].[Date],'mmmm yyyy'))=[Enter the month and the Year]))
Can Anyone help me please???