I have a form that has an input box to receive the typed up the month of the year with this code.
Function strMonth() As String
‘ Get the Month of the report from the user
strMonth = InputBox(“Type in the month.”, “Month of Year”)
End Function
Private Sub Report_Activate()
‘ Figure TotalUOS/Expected
Dim strTotalUOS As Variant
On Error GoTo ErrorHandler
strTotalUOS = strMonth
txtMonth = strTotalUOS
etc
That works as advertised.
The user approaches this form from two directions. The monthly report is printed via a switchboard and the input works as advertised. Then at the end of the year there is a button that comes up on the frmClient This button click does several things msgbox that asks if all data entered, then prints report with a label that is only visible when this button is used, then it updates three fields in a separate table. When this button is used the input box does is not displayed. I have but the function both on the report and in the module without success.
Thank you. Fay