I can't seem to figure out how to store a value in my Module subroutine and then pull that value in my Form Subroutine.
Ex. Module
Public Sub exMod(ckIssue as Double)
ckIssue = 2
End Sub
Ex. Form Code
Public Sub Button_Click()
Dim ckIssue as Double
MsgBox(ckIssue)
If ckIssue >= 0 Then
Goto Exit_Sub
Else
DoCmd.OpenReport acPreview
End If
End Sub
I always get a blank value when I run the form code.
Any Suggestions?
Ex. Module
Public Sub exMod(ckIssue as Double)
ckIssue = 2
End Sub
Ex. Form Code
Public Sub Button_Click()
Dim ckIssue as Double
MsgBox(ckIssue)
If ckIssue >= 0 Then
Goto Exit_Sub
Else
DoCmd.OpenReport acPreview
End If
End Sub
I always get a blank value when I run the form code.
Any Suggestions?