G
Guest
Hey guys,
here is the deal. I am opening a report from a form (tab control type of
form) that has a combo box with a list of Airport codes (station).
here is the code:
Dim stDocName As String
Dim stLinkCriteria As String
Dim stValue As String
stDocName = "rpt_StnRecord"
stValue = Me![Combo12]
stLinkCriteria = "[Station]=" & stValue
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
As you can see, the report (rpt_StnRecord) is supposed to open using as
Station (field) criteria the value in the Combo12 (located on the tab form).
This works well except that I cannot get the report to open right away. I get
another box popping up asking me to enter the station value (which is already
in combo12).
I dont get it. Any idea?
Thanks guys.
Alec
here is the deal. I am opening a report from a form (tab control type of
form) that has a combo box with a list of Airport codes (station).
here is the code:
Dim stDocName As String
Dim stLinkCriteria As String
Dim stValue As String
stDocName = "rpt_StnRecord"
stValue = Me![Combo12]
stLinkCriteria = "[Station]=" & stValue
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
As you can see, the report (rpt_StnRecord) is supposed to open using as
Station (field) criteria the value in the Combo12 (located on the tab form).
This works well except that I cannot get the report to open right away. I get
another box popping up asking me to enter the station value (which is already
in combo12).
I dont get it. Any idea?
Thanks guys.
Alec