No Current Record Message Access 2003

M

Mrstacy

When I select "Other" in the Discovered How Field, and attempt to exit
form, I get the message box error. I also get the No Current Record
message. Any help is appreciated.

Access 2003 Windows XP

Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.DiscoveredHow = "Other" Then
If Nz(Me.Other, "") = "" Then
Cancel = True
MsgBox "Miscellaneous explanation is required!", vbOKOnly +
vbInformation
Me.Other.SetFocus
End If
End If
End Sub
 
M

Mrstacy

When I select "Other" in the Discovered How Field, and attempt to exit
form, I get the message box error.  I also get the No Current Record
message.  Any help is appreciated.

Access 2003 Windows XP

Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.DiscoveredHow = "Other" Then
    If Nz(Me.Other, "") = "" Then
        Cancel = True
        MsgBox "Miscellaneous explanation is required!", vbOKOnly +
vbInformation
        Me.Other.SetFocus
    End If
End If
End Sub

I copied this similar code to a different button and got a slightly
different message - see below. I"m hoping any fix corrects both:

The setting you entered isn't valid for this property
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Modify Date procudure 2
Data validation 16
DATEMODIFIED FIELD 1
Validation Error 2
Required Entry 2
error when saving 1
Add New Record for Combo Box 5
beforeupdate command not working in Access 2007 4

Top