Date format in table

5 pts.
Tags:
Microsoft Access 2003
Microsoft Access tables
I record dates of birth and death from headstones. Often I only know the year, or sometimes the month and year. How can a create a table field to accept the info I have and not require a full date (month, day, year). I also would like to have a DateDiff field that will show the age at death from the info I was able to enter.

Software/Hardware used:
ms access 2003

Answer Wiki

Thanks. We'll let you know when a new response is added.

I would recommend you not use a single column, but 3 columns, each with date, month, and year.  These would be integer datatypes, not date ones.

You’ll need to process these based on how much data is collected, but they will be more accurate than trying to mock up dates.  You’ll also need to set valid value ranges for them.  

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    You could use a date column, and construct a date form the info the user enters in your form. If you get only month and year you can choose to construct a date for the first day or the last day of the month, and do something similar when you have only the year.
    70,200 pointsBadges:
    report
  • TomLiotta
    I'd thought about a separate day, month and year group of columns, plus a text column that records the actual string of dates. But actual usage info would be helpful. -- Tom
    125,585 pointsBadges:
    report
  • msi77
    You can calculate DateDiff field in a view (stored query) for the dates with fully available components.
    1,670 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following