I have a form which contains a count of scanned items if, OK or ERR from my TblLog.
I have 2 displayed fields which show the numder of recorded errors using Dlookups
Me.ScansOK = DCount("[Err_OK]", "TblLog", "[Err_OK] = 'OK'")
Me.ScansERR = DCount("[Err_OK]", "TblLog", "[Err_OK] = 'ERR'")
I want to only count the Errors / OK where the Station is equal to the Station ID on my form
i.e. Me.ScansOK = DCount("[Err_OK]", "TblLog", "[Err_OK] = 'OK'") where table TblLog.Station = myform.StationID
Is this possible with DCount or is there a better way ?
Any help appriciated
Steve
I have 2 displayed fields which show the numder of recorded errors using Dlookups
Me.ScansOK = DCount("[Err_OK]", "TblLog", "[Err_OK] = 'OK'")
Me.ScansERR = DCount("[Err_OK]", "TblLog", "[Err_OK] = 'ERR'")
I want to only count the Errors / OK where the Station is equal to the Station ID on my form
i.e. Me.ScansOK = DCount("[Err_OK]", "TblLog", "[Err_OK] = 'OK'") where table TblLog.Station = myform.StationID
Is this possible with DCount or is there a better way ?
Any help appriciated
Steve