Hi all,
I have the following code which counts up the records in a particular query. How can I run this code from my form and stick the count value returned into a textbox.
SELECT Count(qryCountRepRecs1.RepsRecordsID) AS CountOfRepsRecordsID
FROM qryCountRepRecs1;
I can't use DCount as qryCountRepRecs1 references many tables. I can't use DoCmd.RunSQL as that doesn't execute SELECT statements??
Thanks
Melt
I have the following code which counts up the records in a particular query. How can I run this code from my form and stick the count value returned into a textbox.
SELECT Count(qryCountRepRecs1.RepsRecordsID) AS CountOfRepsRecordsID
FROM qryCountRepRecs1;
I can't use DCount as qryCountRepRecs1 references many tables. I can't use DoCmd.RunSQL as that doesn't execute SELECT statements??
Thanks
Melt