What is the matter with this simple code?

E-D

Registered User.
Local time
Today, 19:35
Joined
Dec 31, 2001
Messages
42
Private Sub CmdCancelReport_Click()
Dim a As Integer
Dim b As Integer
'CUSTOMERS_ORDERSstatus.SetFocus
If CUSTOMERS_ORDERSstatus.text = "" Then
a = MsgBox("Are you sure?", vbYesNo)
If a = vbYes Then
CmdCancelHeshbonit.Caption = "yes"
CUSTOMERS_ORDERSstatus.Text = "cancelled"
Else
Exit Sub
End If
Else
b = MsgBox("Are you sure?", vbYesNo)
If b = vbYes Then
CmdCancelHeshbonit.Caption = "go"
CUSTOMERS_ORDERSstatus.SetFocus
CUSTOMERS_ORDERSstatus.Text = ""
Else
Exit Sub
End If
End If
End Sub

Access sais that CUSTOMERS_ORDERSstatus should be on focus, however when I set focus onto it, Access sais I can't do it
Is that Bill or me?
 
What is the Enabled property of the field CUSTOMERS_ORDERSstatus set to?

Cheers,
SteveA
smile.gif
 
Well. I found a way to bypass the problem by using the tag property. Anyway I solved the problem.. thanks
 

Users who are viewing this thread

Back
Top Bottom