Kennelbloke
Technical User
I have a bit code that checks to see if a client has two or more records in a query and shows a different form based on the result. Simple enough. It works most of the time fine.
However, occasionally it doesn't work and returns zero count even through there are records in the query. Example:
The me!Date field is set to the dates shown in the query in both instances
chkDupe returns 0 records
I even tried hard coding the date
chkDupe also returns a count of 0 records
The underlying query has these records.
On another client
chkDupe Returns 2 records
It's date related because if I remove the date part of the criteria it returns correctly. The underlying field is set as a Date field in short format.
If I copy the query and create a play one and enter the criteria I get the correct result of 2 records.
I may be going senile but...
However, occasionally it doesn't work and returns zero count even through there are records in the query. Example:
The me!Date field is set to the dates shown in the query in both instances
chkDupe returns 0 records
I even tried hard coding the date
chkDupe also returns a count of 0 records
The underlying query has these records.
On another client
chkDupe Returns 2 records
It's date related because if I remove the date part of the criteria it returns correctly. The underlying field is set as a Date field in short format.
If I copy the query and create a play one and enter the criteria I get the correct result of 2 records.
I may be going senile but...