R
Red
I'd really appreciate some help, I just can't work out what I've done wrong.
I written the below function to return a value to a form, but for some
reason the value doesn't get through.
Public Function Confirm(strMessage As String) As Boolean
myChoice = MsgBox(strMessage, vbQuestion + vbOKCancel, _
"Creating Monthly Movement Table")
End Function
The form code reads:
If Confirm("Are you sure you want to create/overwrite the Monthly
Movement" & Chr(13) & Chr(10) _
& "table for the reporting period " & txtMonth & "/" & strShortYear)
= 2 Then
DoCmd.Close
End
Else
...........................
Thanks.
I written the below function to return a value to a form, but for some
reason the value doesn't get through.
Public Function Confirm(strMessage As String) As Boolean
myChoice = MsgBox(strMessage, vbQuestion + vbOKCancel, _
"Creating Monthly Movement Table")
End Function
The form code reads:
If Confirm("Are you sure you want to create/overwrite the Monthly
Movement" & Chr(13) & Chr(10) _
& "table for the reporting period " & txtMonth & "/" & strShortYear)
= 2 Then
DoCmd.Close
End
Else
...........................
Thanks.