S
Singinbeauty
Hello,
I have a form of which I enter in certain information and depending on one
field I need to have a certain report open. I had this working at one point
but it got deleted and for the life of me I can't remember what the correct
code should be.
Right now it is:
Private Sub WAF_Click()
If [CREDIT TYPE] = "CM" Then
DoCmd.RunMacro [CRN NOTICE]
Else
DoCmd.RunMacro [AB NOTICE]
End If
End Sub
What I need to happen is when a button is pushed the database will check the
'Credit Type' field for either 'CM' or 'AB'. If it is 'CM' then the macro
[CRN NOTICE] needs to run, if not then [AB NOTICE] should run. Please help!!!!
I have a form of which I enter in certain information and depending on one
field I need to have a certain report open. I had this working at one point
but it got deleted and for the life of me I can't remember what the correct
code should be.
Right now it is:
Private Sub WAF_Click()
If [CREDIT TYPE] = "CM" Then
DoCmd.RunMacro [CRN NOTICE]
Else
DoCmd.RunMacro [AB NOTICE]
End If
End Sub
What I need to happen is when a button is pushed the database will check the
'Credit Type' field for either 'CM' or 'AB'. If it is 'CM' then the macro
[CRN NOTICE] needs to run, if not then [AB NOTICE] should run. Please help!!!!