M
MPgov
Hello all. I am a novice at Access but hoping someone can help me.
I am trying to open a report with a popup that requires input of a specific
date. But, I want to keep this date and insert it into an unbound control on
the report. I have the following on the “On Open†event of the report:
Private Sub Report_Open(Cancel As Integer)
Dim myPrompt As String
Dim value1As String
Dim NewProposalDate As Date
On Error GoTo ErrHandler
Const myTitle = "View Cost Proposal Report"
myPrompt = "Enter New Proposal Date:"
value1= InputBox(myPrompt, myTitle, Date)
NewProposalDate = value1
MsgBox NewProposalDate2
Exit Sub
ErrHandler:
MsgBox Err.Description
End Sub
This opening input box works well, but I cannot figure out how to save this
“input date†into an unbound control on the report. Any help would be
appreciated.
I am trying to open a report with a popup that requires input of a specific
date. But, I want to keep this date and insert it into an unbound control on
the report. I have the following on the “On Open†event of the report:
Private Sub Report_Open(Cancel As Integer)
Dim myPrompt As String
Dim value1As String
Dim NewProposalDate As Date
On Error GoTo ErrHandler
Const myTitle = "View Cost Proposal Report"
myPrompt = "Enter New Proposal Date:"
value1= InputBox(myPrompt, myTitle, Date)
NewProposalDate = value1
MsgBox NewProposalDate2
Exit Sub
ErrHandler:
MsgBox Err.Description
End Sub
This opening input box works well, but I cannot figure out how to save this
“input date†into an unbound control on the report. Any help would be
appreciated.