G
Guest
I am trying get a count of records for a lead location where the record
number is greater than a certain number. It does great for selecting and
counting the number of records for each lead location but it bombs when I try
to give it criteria for which records to count. What am I doing wrong? It
keeps giving me an error that says I am trying to execute a query that does
not include the specified expression 'recordNum' as part of a aggregate
function. I am running Access 2003.
SELECT NewLVRMain.LeadLoc, Count(NewLVRMain.RecordNum) AS CountOfLeadLoc,
NewLVRMain.RecordNum
FROM NewLVRMain
GROUP BY NewLVRMain.LeadLoc
HAVING (((NewLVRMain.RecordNum)>=160000));
Thanks for any help.
Thanks - Jen
number is greater than a certain number. It does great for selecting and
counting the number of records for each lead location but it bombs when I try
to give it criteria for which records to count. What am I doing wrong? It
keeps giving me an error that says I am trying to execute a query that does
not include the specified expression 'recordNum' as part of a aggregate
function. I am running Access 2003.
SELECT NewLVRMain.LeadLoc, Count(NewLVRMain.RecordNum) AS CountOfLeadLoc,
NewLVRMain.RecordNum
FROM NewLVRMain
GROUP BY NewLVRMain.LeadLoc
HAVING (((NewLVRMain.RecordNum)>=160000));
Thanks for any help.
Thanks - Jen