Query problem using "last" (4 Viewers)

Why do you think that Access and Excel have different date references for day 0 of their internal calendar?
just tested it both, in Excel VBA and Access VBA:
Code:
format(cdate(0),"mm/dd/yyyy")
they both return:
Code:
12/30/1899
 
Arnel, I first opened Excel and Access simultaneously. I opened the VBA window, opened the immediate window, and did a debug.print on 0. In Excel, I put 0 in slot A1, put formula =A1 in slot B1, and then formatted column A as date, column B as number.

Day0.jpg


Next, I asked Edge/Copilot about the date differences, which it acknowledged. Here is the first part of what it said.

AccExcDates.jpg



Therefore, I have a reason to say what I said about dates. Yes, it might be hijacking the thread, but if there is erroneous information, I think it should be corrected before returning to the primary issue.
 
i don't know why are comparing excel against access.
just prove that Last("FieldName") is not returning the "Last saved New record".
you can also create a query from the table, sort it Asc or Desc (if you want).
then on vba->immediate window:
Code:
?DLast("FieldName", "YourQuery")
 

Users who are viewing this thread

Back
Top Bottom