I know how to program a command button to print a single record:
DoCmd.OpenReport "[Report]", acPreview, , "[ID] = " & Me.[ID]
DoCmd.PrintOut
DoCmd.Close acReport, "[Report]"
I also have created a command button to print one person's multiple records:
DoCmd.OpenReport "[Report]", acPreview, , "[name] = " & Me.[txtname]
DoCmd.PrintOut
DoCmd.Close acReport, "[Report]"
...I'm stating what I already know, to clarify what I've already tried..
But I have a mileage log report based off one form and one table that is grouped to print by months, I need to know how to create code for a command button, that allow's you to pick the month, and print only that current/monthly record. The idea of the 'name' above won't work because they don't have something in common, except the month in the date textbox, but there's also the day and year in the same textbox... and they will not be happy if they have to have a seperate textbox for month, day, and year. :/ Any help would be greatly appreciated!
Thank You in Advance,
A. Lyon