Eric the Viking
Registered User.
- Local time
- Today, 21:36
- Joined
- Sep 20, 2012
- Messages
- 70
I have a command button on a continuous form that opens a report for an individual in my fishing club with the following:
Private Sub Command22_Click()
DoCmd.OpenReport "rptMembersLedgerDebitsAndReceiptsTEMP", , , "Surname='" & Me.Surname & "'AND FirstName='" & Me.FirstName & "'"
End Sub
Rather than having to manually name the report when I save it to a folder I would like to be able to have it automatically add the members name and the date so all I have to do is click save. I cannot find a way of doing this so I am hoping someone out there has some code that works.
Many thanks for reading and hopefully guiding me in the right direction.
Cheers
Eric
Private Sub Command22_Click()
DoCmd.OpenReport "rptMembersLedgerDebitsAndReceiptsTEMP", , , "Surname='" & Me.Surname & "'AND FirstName='" & Me.FirstName & "'"
End Sub
Rather than having to manually name the report when I save it to a folder I would like to be able to have it automatically add the members name and the date so all I have to do is click save. I cannot find a way of doing this so I am hoping someone out there has some code that works.
Many thanks for reading and hopefully guiding me in the right direction.
Cheers
Eric