M
Mark Kubicki
I need to check if any records exist for an entry before continuing code,
so, I have this quick sub...
which returns the error: "You cancelled previous operation"; I do not know
what I should be looking for to correct it
Private Sub cmdUpdateAtMasterDatabase_Click()
varX = DLookup("[ManufacturerName]", "Manufacturers", _
"[ManufacturerName] = " & Forms![Spec].[Manufacturer])
If IsNull(varX) Then
responce = MsgBox("This manufacturer is not in the master list,
and cannot be updated", vbInformation & vbOK, "Manufacturer Not Found")
Exit Sub
End If
Me.lblSelectRepAgency.Visible = True
Me.cboSelectRepAgency.Visible = True
etc...
thanks in advance,
mark
so, I have this quick sub...
which returns the error: "You cancelled previous operation"; I do not know
what I should be looking for to correct it
Private Sub cmdUpdateAtMasterDatabase_Click()
varX = DLookup("[ManufacturerName]", "Manufacturers", _
"[ManufacturerName] = " & Forms![Spec].[Manufacturer])
If IsNull(varX) Then
responce = MsgBox("This manufacturer is not in the master list,
and cannot be updated", vbInformation & vbOK, "Manufacturer Not Found")
Exit Sub
End If
Me.lblSelectRepAgency.Visible = True
Me.cboSelectRepAgency.Visible = True
etc...
thanks in advance,
mark