Coding Enthusiast
Coding Enthusiast

Reputation: 3933

What is the default date format for access input?

I am not really experienced with ms-access db. I have the following sql-code that ask for input from the user:

SELECT c.the_date, E.[iD #] AS ID, E.[first name] AS fname
      FROM [date-table] AS c, employeetbl AS E
WHERE c.the_date between [enter a beginning date] and [Enter an end date];

Any help will be appreciated.

Upvotes: 1

Views: 2661

Answers (1)

Zohar Peled
Zohar Peled

Reputation: 82474

you can use Format to ensure the date is entered in the correct format to the table: i.e Format (Date, "yyyy-mm-dd").
However, ensuring the user enters the correct format may be a little tricky, since '2015-03-09' may be March 9th or September 3rd. For the user to enter a date that can't be ambiguous I guess the best format is something like dd-mmm-yyyy (ie. 09-mar-2015 or 03-sep-2015).

Upvotes: 1

Related Questions