i am using Access97.
i need help with some syntax. i think i am close.
i made a table called tblMonths with 3 columns:
Month From TO
January January 1 January 31
etc.
then i created a form called frmRptTotals and on the form i made a list box called cboMonth with the 3 columns above. The 1st column is visible and the other 2 are invisible.
Then i made another list box called cboYear where i entered years (using Value list).
Then i made a text box called txtDate1 with the value: =[cboMonth].[Column](1) & ", " & [cboYear]
then i made another text box called txtDate2 with the value: =[cboMonth].[Column](2) & ", " & [cboYear]
Then in my report, i have a text box:
=IIf([project_issued_date] Between [Forms]![frmRptTotals]![txtDate1] And [Forms]![frmRptTotals]![txtDate2],1,0)
But, everything turns up 0! help
i have a feeling there is a problem with my syntax. do i need to type ...between & "'" & Forms![frmRptTotals]!...
thanks,
ruth
i need help with some syntax. i think i am close.
i made a table called tblMonths with 3 columns:
Month From TO
January January 1 January 31
etc.
then i created a form called frmRptTotals and on the form i made a list box called cboMonth with the 3 columns above. The 1st column is visible and the other 2 are invisible.
Then i made another list box called cboYear where i entered years (using Value list).
Then i made a text box called txtDate1 with the value: =[cboMonth].[Column](1) & ", " & [cboYear]
then i made another text box called txtDate2 with the value: =[cboMonth].[Column](2) & ", " & [cboYear]
Then in my report, i have a text box:
=IIf([project_issued_date] Between [Forms]![frmRptTotals]![txtDate1] And [Forms]![frmRptTotals]![txtDate2],1,0)
But, everything turns up 0! help
i have a feeling there is a problem with my syntax. do i need to type ...between & "'" & Forms![frmRptTotals]!...
thanks,
ruth