P
Peter Row
Hi,
I have an Access 2002 (XP) ADP project in 2002 format linking to SQL Server
2000 SP3.
I offer users a search form where they can select values from multiple drop
downs and the find all records that match and also get a count of how many
matches.
A dynamic SQL string is built up and set as the recordsource of a subform.
At it's most basic, (and most common) the query will be tell me which (and
hence how many) records have the StatusID field = XX (where XX is a value
selected by the user from a combo)
However depending on cosmic alignments, time of day, whether it's a full
moon tonight, the total number of records that I display in a textbox
underneath the grid, gives wildly inaccurate results or slightly inaccurate.
I have tried using both the RecordsetClone.Recordcount and
Recordset.Recordcount properties of the subform, as well as doing a
movefirst followed by a movelast but still it is not accurate.
Any ideas on how I might get an accurate answer of total number of records
would be most appreciated.
Regards,
Peter
I have an Access 2002 (XP) ADP project in 2002 format linking to SQL Server
2000 SP3.
I offer users a search form where they can select values from multiple drop
downs and the find all records that match and also get a count of how many
matches.
A dynamic SQL string is built up and set as the recordsource of a subform.
At it's most basic, (and most common) the query will be tell me which (and
hence how many) records have the StatusID field = XX (where XX is a value
selected by the user from a combo)
However depending on cosmic alignments, time of day, whether it's a full
moon tonight, the total number of records that I display in a textbox
underneath the grid, gives wildly inaccurate results or slightly inaccurate.
I have tried using both the RecordsetClone.Recordcount and
Recordset.Recordcount properties of the subform, as well as doing a
movefirst followed by a movelast but still it is not accurate.
Any ideas on how I might get an accurate answer of total number of records
would be most appreciated.
Regards,
Peter