Re: Date format problem
From: Warren Siu (WarrenSiu_at_discussions.microsoft.com)
Date: 11/22/04
- Previous message: raj: "Re: Pls Hlp! How to convert a .xls file to .txt file in Access / V"
- In reply to: Allen Browne: "Re: Date format problem"
- Next in thread: Allen Browne: "Re: Date format problem"
- Reply: Allen Browne: "Re: Date format problem"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Nov 2004 00:29:09 -0800
Dear Allen
By using your advised function, I made two queries for the tables and the
dates fields are successfully shown as double numbers. However, when the
matching actually take place the double numbers date are automatically return
to short date format...and the same happened.
"Allen Browne" wrote:
> Okay, Warren.
>
> Now ask Access to show you the fields as numbers. Create a query, and enter
> this as a calculated field into a fresh column in the Field row:
> CDbl(Nz([date1], #0:00:00#))
>
> Do you see whole numbers returned? Fractional numbers? Do they match?
>
> This should help you to determine whether the problem is caused by:
> - wrong century in the date;
> - time aspects;
> - incorrect data types (e.g. Text, not Date)
> - incorrect date formats.
>
>
> BTW, since you are using a date format different to the US, you might find
> this article helpful:
> International Date Formats in Access
> at:
> http://members.iinet.net.au/~allenbrowne/ser-36.html
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Warren Siu" <WarrenSiu@discussions.microsoft.com> wrote in message
> news:6824F969-795B-4454-BD24-138934D24132@microsoft.com...
> > There is no time information on either date fields.
> > I've got the right result records with clear date, eg 16-Nov-04, however,
> > whose records with date such as 12-Nov-04 may be missing.
> >
> >
> > "Warren Siu" wrote:
> >
> >> I've two table, say table1 and table2, and they have date type field
> >> [date1]
> >> and [date2] respectively. They are in Medium Date format. I've tried to
> >> loop
> >> through the table1 to find records in table2 by using a combination of
> >> conditions with matching of [date1] to [date2]. Some expected records
> >> were
> >> missed at the result and it seems to be the date format problem. I've
> >> tried
> >> to change the date fields in Long Date format, but it didn't work. Does
> >> anyone tell me how to fix the problem. Thanks
>
>
>
- Previous message: raj: "Re: Pls Hlp! How to convert a .xls file to .txt file in Access / V"
- In reply to: Allen Browne: "Re: Date format problem"
- Next in thread: Allen Browne: "Re: Date format problem"
- Reply: Allen Browne: "Re: Date format problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|