A
ANDRLIMO
I am having a problem with the code that i have written. I can get the last
elseif statement to work but the if and first elseif doesnt want to work
correctly. Below is the code that i used, and any help with this would be
greatly appreciated.
Private Sub Command41_Click()
If Me.APPROVED = "yes" And Me.DISAPPROVED = "0" Then
DoCmd.OpenReport "rptdd1970", acViewPreview
ElseIf Me.APPROVED = "0" And Me.DISAPPROVED = "yes" Then
intanswer = MsgBox("Your request was disapproved.", vbOKOnly)
ElseIf Me.APPROVED = "0" And Me.DISAPPROVED = "0" Then
intanswer = MsgBox("Your request hasn't been reviewed yet.",
vbokayonly)
End If
End Sub
Thanks,
Andrew
elseif statement to work but the if and first elseif doesnt want to work
correctly. Below is the code that i used, and any help with this would be
greatly appreciated.
Private Sub Command41_Click()
If Me.APPROVED = "yes" And Me.DISAPPROVED = "0" Then
DoCmd.OpenReport "rptdd1970", acViewPreview
ElseIf Me.APPROVED = "0" And Me.DISAPPROVED = "yes" Then
intanswer = MsgBox("Your request was disapproved.", vbOKOnly)
ElseIf Me.APPROVED = "0" And Me.DISAPPROVED = "0" Then
intanswer = MsgBox("Your request hasn't been reviewed yet.",
vbokayonly)
End If
End Sub
Thanks,
Andrew