N
nydia
i created a database that keeps track of clients and the
meetings they attend. i created a billing sheet report
(invoice) which will promt for a start and end date and
when entered will show clients who have attended between
those 2 dates.
i put in a command button the the form, so that the
billing sheet can be emailed to our accounting department.
the problem i am having is that when i click on the button
in prompts me to enter the dates and it emails the report,
but it emails the billing sheet on every client. I want it
to email the billing sheet on the current client in the
form.Can someone please tell me how to fix? this is the
code i have on click:
Private Sub cmdMailBillingSheet_Click()
On Error GoTo Err_cmdMailBillingSheet_Click
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "rptBillingSheet"
stlinkcritera = "[clientid]=" & Me![ClientID]
DoCmd.SendObject acReport, stDocName, , stlinkcriteria
Exit_cmdMailBillingSheet_Click:
Exit Sub
Err_cmdMailBillingSheet_Click:
MsgBox Err.Description
Resume Exit_cmdMailBillingSheet_Click
End Sub
meetings they attend. i created a billing sheet report
(invoice) which will promt for a start and end date and
when entered will show clients who have attended between
those 2 dates.
i put in a command button the the form, so that the
billing sheet can be emailed to our accounting department.
the problem i am having is that when i click on the button
in prompts me to enter the dates and it emails the report,
but it emails the billing sheet on every client. I want it
to email the billing sheet on the current client in the
form.Can someone please tell me how to fix? this is the
code i have on click:
Private Sub cmdMailBillingSheet_Click()
On Error GoTo Err_cmdMailBillingSheet_Click
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "rptBillingSheet"
stlinkcritera = "[clientid]=" & Me![ClientID]
DoCmd.SendObject acReport, stDocName, , stlinkcriteria
Exit_cmdMailBillingSheet_Click:
Exit Sub
Err_cmdMailBillingSheet_Click:
MsgBox Err.Description
Resume Exit_cmdMailBillingSheet_Click
End Sub