S
ScubaDee
Can someone help me out here?? I have a combo box with a list of departments
on it...and I have an option group listing the different reports. I want the
user to pick a department and then a report and have it open for that
specific department.
The code works but it pops up the "enter the parameter value" dialogue and I
have to re-type the department...both strange and tedious to the user. Here
is my code
Dim reportname
If Me!Action = 1 Then reportname = "Rpt_PaperworkIncomplete"
If Me!Action = 2 Then reportname = "Rpt_TBD"
If Me!Action = 3 Then reportname = "Rpt_TBD"
If Me!Action = 4 Then reportname = "Rpt_TBD"
If Me!Action = 5 Then reportname = "Rpt_TBD"
Dim stLinkCriteria As String
stLinkCriteria = "[Position]=" & "" & Me![lkp] & ""
DoCmd.OpenReport reportname, acViewPreview, , stLinkCriteria
PLEASE HELP
on it...and I have an option group listing the different reports. I want the
user to pick a department and then a report and have it open for that
specific department.
The code works but it pops up the "enter the parameter value" dialogue and I
have to re-type the department...both strange and tedious to the user. Here
is my code
Dim reportname
If Me!Action = 1 Then reportname = "Rpt_PaperworkIncomplete"
If Me!Action = 2 Then reportname = "Rpt_TBD"
If Me!Action = 3 Then reportname = "Rpt_TBD"
If Me!Action = 4 Then reportname = "Rpt_TBD"
If Me!Action = 5 Then reportname = "Rpt_TBD"
Dim stLinkCriteria As String
stLinkCriteria = "[Position]=" & "" & Me![lkp] & ""
DoCmd.OpenReport reportname, acViewPreview, , stLinkCriteria
PLEASE HELP