Hello Everyone,
I have a form where I would like to click on a button and have it save a report but only of the current record. I would like to have it save under a name similar to a key being used in the database. This is what I currently have.
Private Sub CmdSendtoFile_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "Rate Confirmation"
strWhere = "[Load]=" & Me!Load
DoCmd.OpenReport strDocName, acPreview, , strWhere
End Sub
I have a form where I would like to click on a button and have it save a report but only of the current record. I would like to have it save under a name similar to a key being used in the database. This is what I currently have.
Private Sub CmdSendtoFile_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "Rate Confirmation"
strWhere = "[Load]=" & Me!Load
DoCmd.OpenReport strDocName, acPreview, , strWhere
End Sub