L
Lynndyhop
Hi there,
I am creating a basic helpdesk database that tracks problem calls. I want to
be able to have the call taker assign a ticket to anyone by having a button
that generates an email (ie. Sendobject). I've created a report for the Send
Object to send, but am having trouble getting the filter to work.
It appears that it is not filtering the report - I still get all records,
but the form is filtering and is not turning off.
I tried to create a filter in the report (ie. Filter field: "CallID=" &
Me![CallID] instead of creating filter code on the button on the form, but it
also wasn't filtering.
Here is what I have:
Dim RptName As String
Dim strSQL As String
RptName = "EmailTicketReport"
strSQL = "[CallID] = " & Me.CallID
Me.Filter = strSQL
Me.FilterOn = True
DoCmd.SendObject acSendReport, RptName, acFormatTXT, , , , "ESR Ticket
Assignment " & Me.CallID
Me.FilterOn = False
Many thanks for your help :0)
I am creating a basic helpdesk database that tracks problem calls. I want to
be able to have the call taker assign a ticket to anyone by having a button
that generates an email (ie. Sendobject). I've created a report for the Send
Object to send, but am having trouble getting the filter to work.
It appears that it is not filtering the report - I still get all records,
but the form is filtering and is not turning off.
I tried to create a filter in the report (ie. Filter field: "CallID=" &
Me![CallID] instead of creating filter code on the button on the form, but it
also wasn't filtering.
Here is what I have:
Dim RptName As String
Dim strSQL As String
RptName = "EmailTicketReport"
strSQL = "[CallID] = " & Me.CallID
Me.Filter = strSQL
Me.FilterOn = True
DoCmd.SendObject acSendReport, RptName, acFormatTXT, , , , "ESR Ticket
Assignment " & Me.CallID
Me.FilterOn = False
Many thanks for your help :0)