I there any way to set a date field to allow incomplete dates?
Most of the dates I have would have a format like:
10-25-2004
But sometimes It could be missing information.
10-??-2004
??-25-2004
??-25-????
etc.......
I've tried using spaces, question marks, and exclamations to no avail.
I want to be able to sort on this field and to query on this field so
I hesitate to make it a non-date field. Is that my only choice?
To make it a straight Alphanumeric field?
Rebecca Riordan - 20 Aug 2004 02:36 GMT
No, you'll need to use three separate fields. But this can actually make
life easier, because it gives you more options in the UI.
HTH

Signature
Rebecca Riordan, MVP
Seeing Data: Designing User Interfaces
Designing Relational Database Systems, 2nd Edition
www.awprofessional.com
Microsoft SQL Server 2000 Programming Step by Step
Microsoft ADO.NET Step by Step
www.microsoft.com/mspress
> I there any way to set a date field to allow incomplete dates?
>
[quoted text clipped - 17 lines]
> I hesitate to make it a non-date field. Is that my only choice?
> To make it a straight Alphanumeric field?
iam@notarealisp.com - 20 Aug 2004 03:57 GMT
For what I want to do, separating the date to the three fields will
complicate the hell out of what otherwise is a
very simple ten field database and report.
Sigh......
Douglas J. Steele - 20 Aug 2004 14:19 GMT
Recombine them into a single field, using a query, for your report.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> For what I want to do, separating the date to the three fields will
> complicate the hell out of what otherwise is a
> very simple ten field database and report.
>
> Sigh......
iam@notarealisp.com - 20 Aug 2004 14:28 GMT
Yeah, I get the jist of what has to be done.
I don't know about you folks but I have had enough of Microsofts lousy
products.
>Recombine them into a single field, using a query, for your report.
>
[quoted text clipped - 3 lines]
>>
>> Sigh......
Rebecca Riordan - 20 Aug 2004 20:07 GMT
Has nothing to do with Microsoft. This is how relational databases work.

Signature
Rebecca Riordan, MVP
Seeing Data: Designing User Interfaces
Designing Relational Database Systems, 2nd Edition
www.awprofessional.com
Microsoft SQL Server 2000 Programming Step by Step
Microsoft ADO.NET Step by Step
www.microsoft.com/mspress
> Yeah, I get the jist of what has to be done.
>
[quoted text clipped - 8 lines]
> >>
> >> Sigh......
John Vinson - 20 Aug 2004 07:36 GMT
>I there any way to set a date field to allow incomplete dates?
>
[quoted text clipped - 13 lines]
>
>I've tried using spaces, question marks, and exclamations to no avail.
As Rebecca says, no you cannot. A Date/Time value IS NOT A STRING.
It's stored internally as a double float number, a count of days and
fractions of a day (times) since midnight, December 30, 1899. As such
any date/time value corresponds to one precise moment of time.
You'll need to use a text field. Searching it will be complicated I
fear (but you're asking this field to do a complicated job!)
John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public