Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Accomodating non-valid dates in a date/time field

 
   Database Help (Home) -> MS Access -> Tables DB Design RSS
Next:  Data Dictionary Help  
Author Message
RanaeB

External


Since: Dec 04, 2008
Posts: 1



(Msg. 1) Posted: Thu Dec 04, 2008 10:26 am
Post subject: Accomodating non-valid dates in a date/time field
Archived from groups: microsoft>public>access>tablesdbdesign (more info?)

Is there anyway to accomodate missing dates in a date field? For example, I
want to enter 99/99/99 in a date field to signal that this date was not
provided on the paper form, when entering this data into the database form.
But, if a field is set up as a date/time field, 99/99/99 is not a valid date.
So, it's rejected.

I'm using 9 because the rest of my fields are coded and set up to use 9 to
indicate missing data and we'd like this coding to be consistent. I don't
want to leave the field blank if the date is missing because we want to make
sure that there is an specific explanation for missing data, i.e. it wasn't
that the handwriting was unreadable ("7") or that the individual doing data
entry just forgot to enter it.

Any suggestions?
Thanks.

 >> Stay informed about: Accomodating non-valid dates in a date/time field 
Back to top
Login to vote
Roger Carlson

External


Since: Jan 14, 2008
Posts: 145



(Msg. 2) Posted: Thu Dec 04, 2008 1:51 pm
Post subject: Re: Accomodating non-valid dates in a date/time field [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The only way to do that is to store it as text, not a date, but that will
mean all sorts of conversion routines whenever you want to do something with
it. Personally, I'd leave it NULL.


--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L



"RanaeB" <RanaeB.DeleteThis@discussions.microsoft.com> wrote in message
news:1BCDFC13-1289-4828-BDB8-F8D8ADD9AAC1@microsoft.com...
> Is there anyway to accomodate missing dates in a date field? For example,
> I
> want to enter 99/99/99 in a date field to signal that this date was not
> provided on the paper form, when entering this data into the database
> form.
> But, if a field is set up as a date/time field, 99/99/99 is not a valid
> date.
> So, it's rejected.
>
> I'm using 9 because the rest of my fields are coded and set up to use 9 to
> indicate missing data and we'd like this coding to be consistent. I don't
> want to leave the field blank if the date is missing because we want to
> make
> sure that there is an specific explanation for missing data, i.e. it
> wasn't
> that the handwriting was unreadable ("7") or that the individual doing
> data
> entry just forgot to enter it.
>
> Any suggestions?
> Thanks.

 >> Stay informed about: Accomodating non-valid dates in a date/time field 
Back to top
Login to vote
Duane Hookom

External


Since: Jan 29, 2008
Posts: 125



(Msg. 3) Posted: Thu Dec 04, 2008 1:51 pm
Post subject: Re: Accomodating non-valid dates in a date/time field [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

And possibly add a yes/no field that stores -1 if the date is missing. You
can then display whatever you want in forms and reports based on the yes/no
field.
--
Duane Hookom
Microsoft Access MVP


"Roger Carlson" wrote:

> The only way to do that is to store it as text, not a date, but that will
> mean all sorts of conversion routines whenever you want to do something with
> it. Personally, I'd leave it NULL.
>
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
>
>
>
> "RanaeB" <RanaeB DeleteThis @discussions.microsoft.com> wrote in message
> news:1BCDFC13-1289-4828-BDB8-F8D8ADD9AAC1@microsoft.com...
> > Is there anyway to accomodate missing dates in a date field? For example,
> > I
> > want to enter 99/99/99 in a date field to signal that this date was not
> > provided on the paper form, when entering this data into the database
> > form.
> > But, if a field is set up as a date/time field, 99/99/99 is not a valid
> > date.
> > So, it's rejected.
> >
> > I'm using 9 because the rest of my fields are coded and set up to use 9 to
> > indicate missing data and we'd like this coding to be consistent. I don't
> > want to leave the field blank if the date is missing because we want to
> > make
> > sure that there is an specific explanation for missing data, i.e. it
> > wasn't
> > that the handwriting was unreadable ("7") or that the individual doing
> > data
> > entry just forgot to enter it.
> >
> > Any suggestions?
> > Thanks.
>
>
>
 >> Stay informed about: Accomodating non-valid dates in a date/time field 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> MS Access -> Tables DB Design All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]