You are inserting the calculation into the table in your Docmd.RunSQL so tomorrow all records inserted today will be one day off...
And I think that you might need to adjust the calculation to include the VehicleID (numeric value which I assume is the bound hidden column of the CmbVehicle combo):
Code:
Me.TxtTtlDays = Date - DMax("[PurchDate]", "TblVehicleExpenses", "[RsnForPurch] = 'Gas' AND VehicleID =" & Me.CmbVehicle)
If you store the Vehicle name as text then that becomes:
Code:
Me.TxtTtlDays = Date - DMax("[PurchDate]", "TblVehicleExpenses", "[RsnForPurch] = 'Gas' AND Vehicle ='" & Me.CmbVehicle & "'")
Cheers,