Silv3rSurf3r_20
01-12-2004, 11:40 AM
Good Day,
I have a small problem here... i'm trying to create a report using the designer. I need to group some records by SeqNum and seem to be getting an error which i don't comprehend. Here's a fragment of the Query:
SQLQuery = "SELECT SeqNum, PatientID, Date, PaymentTerms, PaymentDescription, AddPaymentDesc, Amount " _
& " FROM Payment WHERE PatientID = '" & myId & "'GROUP BY SeqNum"
and this is the error i get:
"You tried to execute a query that does not include the specified expression 'PatientID' as part of an aggregate function."
What does this mean and what do i have to do for me to be able to successfully execute the SQL Query above.
Thank You
~John~
I have a small problem here... i'm trying to create a report using the designer. I need to group some records by SeqNum and seem to be getting an error which i don't comprehend. Here's a fragment of the Query:
SQLQuery = "SELECT SeqNum, PatientID, Date, PaymentTerms, PaymentDescription, AddPaymentDesc, Amount " _
& " FROM Payment WHERE PatientID = '" & myId & "'GROUP BY SeqNum"
and this is the error i get:
"You tried to execute a query that does not include the specified expression 'PatientID' as part of an aggregate function."
What does this mean and what do i have to do for me to be able to successfully execute the SQL Query above.
Thank You
~John~