I am trying to use the following SQL string to open a recordset which I will then use to output to a file. When I attempt to open the recordset the query gives me an error message informing me that I can not group by fields selected with an '*'. Though as you can see the * has not been used for the selection of any of the fields so I am unsure why this error message is appearing. Any ideas???
strSql = "select * from Cheque, Debits, Attributes where Cheque.ProducedDate >=#" & FromDate & "# and Cheque.ProducedDate <=#" & ToDate & "# and Cheque.Cancelled = False and Cheque.Transferred = False GROUP BY Cheque.Cheque_No, Debits.Debit_ID, Attributes.Debit_ID ORDER BY Cheque.Cheque_No;"
Cheers
Andi
strSql = "select * from Cheque, Debits, Attributes where Cheque.ProducedDate >=#" & FromDate & "# and Cheque.ProducedDate <=#" & ToDate & "# and Cheque.Cancelled = False and Cheque.Transferred = False GROUP BY Cheque.Cheque_No, Debits.Debit_ID, Attributes.Debit_ID ORDER BY Cheque.Cheque_No;"
Cheers
Andi