Hi all
I have the following code
How can I change [enter first date] and [enter last date] into preentered variables.
i.e.
adate = txtstartdate
bdate = txtenddate
then:
DoCmd.OpenReport "absent2", acViewPreview, , "Start_Date > adate and Start_Date < bdate"
but it doesn't work
cheers
I have the following code
Code:
DoCmd.OpenReport "absent2", acViewPreview, , "Start_Date > [enter first date] and Start_Date < [enter last date]"
How can I change [enter first date] and [enter last date] into preentered variables.
i.e.
adate = txtstartdate
bdate = txtenddate
then:
DoCmd.OpenReport "absent2", acViewPreview, , "Start_Date > adate and Start_Date < bdate"
but it doesn't work
cheers