M
m stroup
I have a form field I want to populate based on the last record of a table
but I would like to use two criteria.
I want to get the EngineHrs from the last record in tblEngineMaintenance
where the SerialNumber matches the EngineTxt field on my form and the Type Is
Spark Plug.
Can you tell me if I am close?
LastSPMaint = DLast("[EngineHrs]", "tblEngineMaintenance", "[SerialNumber] =
EngineTxt.Value" And "[Type] = ' Spark Plug' ")
but I would like to use two criteria.
I want to get the EngineHrs from the last record in tblEngineMaintenance
where the SerialNumber matches the EngineTxt field on my form and the Type Is
Spark Plug.
Can you tell me if I am close?
LastSPMaint = DLast("[EngineHrs]", "tblEngineMaintenance", "[SerialNumber] =
EngineTxt.Value" And "[Type] = ' Spark Plug' ")