Hello, I'm hoping that someone will be able to help me with this. I am using an Access 2000 mdb and writing a module to carry out some analysis. I normally obtain the maximum field value of a query using dmax()but am unable to do so in this circumstance as I am creating the sql on the fly using variables. The sql string forms ok and does not error, but when trying to refer to this string in a dmax() situation - it does not like it.
I have a recordset using a DAO connection and am trying to find a way of obtaining the maximum value of one particular field but am failing, using syntax such as maxRecord = rs!max(fieldname). Is there a way of achieving this using the recordset object? If anyone could enlighten me on this I would be extremely grateful.
Many Thanks
Steph
I have a recordset using a DAO connection and am trying to find a way of obtaining the maximum value of one particular field but am failing, using syntax such as maxRecord = rs!max(fieldname). Is there a way of achieving this using the recordset object? If anyone could enlighten me on this I would be extremely grateful.
Many Thanks
Steph