Does this do what you want?
Code:Dim lngVessel As Long If IsNumeric(Me.VesselInspectionID) Then lngVessel = Nz(DLookup("VesselID", "tblVesselInspections", "VesselInspectionID = " & Me.VesselInspectionID), 0) Me.CmbVsl = lngVessel Me.CmbIns.Requery End If Me.AllowEdits = Me.NewRecord