I'm using the following code on a form with a command button.
Instead of just opening Report A, I would like to be prompted for the name instead. Is that possible?
Dim strDocName As String
Dim strWhere As String
strDocName = "Report A"
strWhere = "[recordid]=" & Me!recordid
DoCmd.OpenReport strDocName, acViewReport, , strWhere
Instead of just opening Report A, I would like to be prompted for the name instead. Is that possible?
Dim strDocName As String
Dim strWhere As String
strDocName = "Report A"
strWhere = "[recordid]=" & Me!recordid
DoCmd.OpenReport strDocName, acViewReport, , strWhere