Re: Run-time Error 2001: You cancelled the previous operation
- From: "Andy" <andy.smith@xxxxxxxxxxxxxxxx>
- Date: 2 Aug 2005 08:18:20 -0700
Allan,
Many thanks for your suggestion, however, I have changed the code as
you suggested and it still produces the same error. Code below:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim check_project As String
check_project = DLookup("[Compliance Level]", "Project
Information", "[ProjectID] = Project1")
If check_project = True Then
If IsNull(Me.Compliance_Level) Or Me.Compliance_Level = "" Then
MsgBox "Please enter the Compliance Level"
Me.Compliance_Level.SetFocus
Cancel = True
Else
MsgBox "Not Null"
End If
End If
End Sub
Any more thoughts?
Andy.
.
- Follow-Ups:
- Re: Run-time Error 2001: You cancelled the previous operation
- From: Allan Murphy
- Re: Run-time Error 2001: You cancelled the previous operation
- References:
- Run-time Error 2001: You cancelled the previous operation
- From: Andy
- Re: Run-time Error 2001: You cancelled the previous operation
- From: Allan Murphy
- Run-time Error 2001: You cancelled the previous operation
- Prev by Date: Re: Fields on new tab showing up on all other tabs
- Next by Date: Re: Fields on new tab showing up on all other tabs
- Previous by thread: Re: Run-time Error 2001: You cancelled the previous operation
- Next by thread: Re: Run-time Error 2001: You cancelled the previous operation
- Index(es):
Relevant Pages
|