Below is the code I currently have to either skip a control or go to a
control based on the response in the complications control. The
problem is even when Me.Complications is "None" the cursor goes to
RiskAssessment. What's wrong with my code?
Thanks in advance for your assistance.
Private Sub Complications_Exit(Cancel As Integer)
If Me.Complications = "None" Then
DoCmd.GoToControl "OrderRenewal"
Else
DoCmd.GoToControl "RiskAssessment"
MsgBox "Has A Risk Assessment Form Been Completed?",
vbInformation, "UHS"
Cancel = True
End If
End Sub
Below is a list that is used for the control:
tbl Complications
ComplicationsID(long integer) Complications (txtbox (FieldSize
25))
1 None
2 Skin Irritation
3 Skin Breakdown
4 Decreased Sensation
5 Motor Impariment
Control Source Complications
Row Source Type table/query
Row Source SELECT tblComplications.ComplicationsID,
tblComplications.Complications FROM tblComplications;
Bound Column 1
The only code in OrderRenewal is =PC() Proper Case in the afterupdate
event.
Kenny G