I am trying to get the code below to order by nsn but when i add the code i get an error: 'excute a query that does not include the specified expression 'NSN' as part of an aggregate function.'
Set rsHR = Cdb.OpenRecordset("Select Count([HRID])as HR from qryrptflighthr WHERE PID = '" & Me!PID "' ORDER BY NSN")
If i add NSN by the SELECT it don't help either.
Thanks,
Set rsHR = Cdb.OpenRecordset("Select Count([HRID])as HR from qryrptflighthr WHERE PID = '" & Me!PID "' ORDER BY NSN")
If i add NSN by the SELECT it don't help either.
Thanks,