I have a pop up menu that asks the user to pick a month (there are two columns - "January, 1", "February, 2", etc).
When the user picks a month, I want to use that number value for a report based only on the transactions for the month that the user used.
Can you filter a report based on a variable that a user picks from a form?
Combo6 is the name of the combo box in the form where the user picks the month.
I tried to do somehting like (in the openreport event):
DoCmd.ApplyFilter , "TransDate = ReportDateFilter"
Where the ReportDateFilter is what I assign the number that the user picked, and the TransDate is the Now date of the transaction that is in the query where the report comes from.
When I run it, it keeps asking me to put the date in.
I was thinking that I need to have a column in the query that takes the month from the transdate so the month is seperate.
Any Suggestions?
When the user picks a month, I want to use that number value for a report based only on the transactions for the month that the user used.
Can you filter a report based on a variable that a user picks from a form?
Combo6 is the name of the combo box in the form where the user picks the month.
I tried to do somehting like (in the openreport event):
DoCmd.ApplyFilter , "TransDate = ReportDateFilter"
Where the ReportDateFilter is what I assign the number that the user picked, and the TransDate is the Now date of the transaction that is in the query where the report comes from.
When I run it, it keeps asking me to put the date in.
I was thinking that I need to have a column in the query that takes the month from the transdate so the month is seperate.
Any Suggestions?