Z
zat via AccessMonster.com
I have a form that allows users to select a start and end date from two
different calendars that are displayed on the form. The dates are selected
from a received date field in a table. Once the calendar dates are selected
on the from and user selects the Type and Status he wants from the report, he
clicks a button and the report displays on his screen. I have the Type and
Status options working and the calendars are showing the proper dates, but
with the following code I cannot get a report to run.
Private Sub Command29_Click()
If "Me.[dtmInRecDate]" >= ActiveXCtl27.Value And "Me.[dtmInRecDate]" <
ActiveXCtl28.Value And Me.Frame73 = 1 And Me.Frame82 = 1 Then
DoCmd.OpenReport "rptInOpen", acViewPreview
When I write the following code, I get all the records instead of Just the
ones between the start and end dates.
Private Sub Command29_Click()
If "Me.[dtmInRecDate]" >= ActiveXCtl27.Value And ActiveXCtl28.Value And Me.
Frame73 = 1 And Me.Frame82 = 1 Then
DoCmd.OpenReport "rptInOpen", acViewPreview
I would appreciate any help someone could give me on this.
different calendars that are displayed on the form. The dates are selected
from a received date field in a table. Once the calendar dates are selected
on the from and user selects the Type and Status he wants from the report, he
clicks a button and the report displays on his screen. I have the Type and
Status options working and the calendars are showing the proper dates, but
with the following code I cannot get a report to run.
Private Sub Command29_Click()
If "Me.[dtmInRecDate]" >= ActiveXCtl27.Value And "Me.[dtmInRecDate]" <
ActiveXCtl28.Value And Me.Frame73 = 1 And Me.Frame82 = 1 Then
DoCmd.OpenReport "rptInOpen", acViewPreview
When I write the following code, I get all the records instead of Just the
ones between the start and end dates.
Private Sub Command29_Click()
If "Me.[dtmInRecDate]" >= ActiveXCtl27.Value And ActiveXCtl28.Value And Me.
Frame73 = 1 And Me.Frame82 = 1 Then
DoCmd.OpenReport "rptInOpen", acViewPreview
I would appreciate any help someone could give me on this.