M
Maver1ck666
I have a form which the recordset is a query based on 3 tables displaying
different types of fields. The results are then displayed in the detail
section of the form which is set to continuous records.
In the Form Header, are a number of combo boxes all set as filters with the
following properties:
Format: Short Date (UK date standard dd/mm/yyyy)
Row Source Type: Table/Query
Row Source: Sql statement finding unique records corresponding to the
relevant field in the form deatil from the original table (used in the query
above)
Tag: Is set to the corresponding field name
Event (after update) is set to the following (this one is used for a date
field):
Private Sub Filter2_AfterUpdate()
'sets the filter2
DoCmd.ApplyFilter , "" & Me.Filter2.Tag & " = #" & Me.Filter2 & "#"
End Sub
Now this is where its gos a bit screwy. The results I get from my searches
vary depending on the date I enter. For example,
If I enter 07/09/2007 (or any other dates where the day is before the 12th),
then the database will either return:
09/07/2007. This hasn't changed to US format, it just searches the wrong
date, obviously mixing up the dd and mm somehow.
or
The database wont find any records and will return a blank screen.
If I enter a date after the 12th so for example the 13/09/2007, the database
finds the correct records and displays them correctly.
This will happen to any month! I have checked the data itself and it is fine
so im at a loss here.
If you have any suggestions, that would be most fantastic!
Cheers,
Maver1ck666
different types of fields. The results are then displayed in the detail
section of the form which is set to continuous records.
In the Form Header, are a number of combo boxes all set as filters with the
following properties:
Format: Short Date (UK date standard dd/mm/yyyy)
Row Source Type: Table/Query
Row Source: Sql statement finding unique records corresponding to the
relevant field in the form deatil from the original table (used in the query
above)
Tag: Is set to the corresponding field name
Event (after update) is set to the following (this one is used for a date
field):
Private Sub Filter2_AfterUpdate()
'sets the filter2
DoCmd.ApplyFilter , "" & Me.Filter2.Tag & " = #" & Me.Filter2 & "#"
End Sub
Now this is where its gos a bit screwy. The results I get from my searches
vary depending on the date I enter. For example,
If I enter 07/09/2007 (or any other dates where the day is before the 12th),
then the database will either return:
09/07/2007. This hasn't changed to US format, it just searches the wrong
date, obviously mixing up the dd and mm somehow.
or
The database wont find any records and will return a blank screen.
If I enter a date after the 12th so for example the 13/09/2007, the database
finds the correct records and displays them correctly.
This will happen to any month! I have checked the data itself and it is fine
so im at a loss here.
If you have any suggestions, that would be most fantastic!
Cheers,
Maver1ck666