robjones23
Registered User.
- Local time
- Today, 22:29
- Joined
- Dec 16, 2004
- Messages
- 66
Hi,
I've got a database which uses two files "Old" and "New". The "Old" file contains data from 2 dates, date1 and date2. The "New" file contains dates from two dates also, however one of the dates is tha same as that in the "Old" File, i.e. date2 and date3
The dates are stored as TEXT, not as Date/Time.
I have a textbox on my form set to Date()-1 which always gives me date2 (The dates within old and new change each day as new files are imported)
Just to explain these files, they're an extract of data between a 24hr period, 7AM - 7AM which explains why they're over two dates. As a new file is created, the previous "New" file gets renamed to "old" so there is always two days of data which goes effectively over 3 dates.
So anyway, my textbox contains the date in the same format as the text field on the table, dd mmm yyyy. Within the criteria section of the query, i have it pointed to the text box on the form. So when the text box = dd mmm yyyy it SHOULD bring out the same date within the "new" and "old" file. I can then combine these two queries into one table with only date2 inside.
However, when I try to use this criteria, no records are returned. I get a feeling this may be because the textbox is a dd mmm yyyy field and the actual table is a TEXT field. Is there a way to make this work??
Thanks!!
Rob.
I've got a database which uses two files "Old" and "New". The "Old" file contains data from 2 dates, date1 and date2. The "New" file contains dates from two dates also, however one of the dates is tha same as that in the "Old" File, i.e. date2 and date3
The dates are stored as TEXT, not as Date/Time.
I have a textbox on my form set to Date()-1 which always gives me date2 (The dates within old and new change each day as new files are imported)
Just to explain these files, they're an extract of data between a 24hr period, 7AM - 7AM which explains why they're over two dates. As a new file is created, the previous "New" file gets renamed to "old" so there is always two days of data which goes effectively over 3 dates.
So anyway, my textbox contains the date in the same format as the text field on the table, dd mmm yyyy. Within the criteria section of the query, i have it pointed to the text box on the form. So when the text box = dd mmm yyyy it SHOULD bring out the same date within the "new" and "old" file. I can then combine these two queries into one table with only date2 inside.
However, when I try to use this criteria, no records are returned. I get a feeling this may be because the textbox is a dd mmm yyyy field and the actual table is a TEXT field. Is there a way to make this work??
Thanks!!
Rob.