Getting a pop-up as Query1.MyDate

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi,

I am using below query to get details from database.

SELECT Designation, MyDate, Count(Designation) AS MyCount
FROM Combine
WHERE Designation = 'Senior Dummy Manager'
GROUP BY Designation, MyDate
ORDER BY Count(MyDate);

However, whenever I click on query, I get a pop-up as Query.MyDate.
Once I click ok, I get the results. But I am not able to understand why I am getting this pop-up.
Can anyone please help me in this.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Usually this means you have misspelled a field. For instance, it might be [My Date] or [My_Date] instead of [MyDate]. In other words, Access is treating something in the query as a field that needs user input.
 
Upvote 0
Thanks for the help xenou.

I re-checked my query. But could not find spelling mistake.

Below is my query.

SELECT Program, MyDate, Count(Program) AS MyCount
FROM Combine
WHERE Program = 'MET'
GROUP BY Program, MyDate
ORDER BY Count(MyDate);

And 'MyDate' field name copied from database.
Also, once I click OK on pop-up I am getting correct results.

I am not sure, but if I have wrong spelling, will I still get correct results ?

Please do not think I am being arrogant. Just trying to clear my doubt.
Have a nice day ahead. :)
 
Upvote 0
Good catch. That is probably an issue (whatever is in the order by should be the same as what is in the select).
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top