Quantcast
Channel: Access for Developers forum
Viewing all articles
Browse latest Browse all 14673

Parameter Value Problem

$
0
0

The Parameter Value is "Name" when i open my report, I thought I had cleared my whole database of Name!

Below is the code to my report, I have checked report and its query and cant find "Name" is there somewhere else I shoulf look....Thansk for any help...Bob

Private Sub cmdShowBillEmail_Click()
On Error GoTo Err_Command12_Click
    Dim stDocName As String
stDocName = "OwnerInfo"
   
    DoCmd.OpenReport "OwnerInfo", acViewPreview, , "qryClientAddressAll.tblOwnerInfo.OwnerID=Forms!frmOwnerInfo!OwnerID"
    DoCmd.SendObject acSendReport, stDocName, acFormatTXT, , , , "Client Billing Infomation", "You can send Accounts for" & " " & Me.ClientTitle.value & " " & Me.OwnerFirstName.value &" " & Me.OwnerLastName.value & Chr(10) & "to the address in the above attachment" & Chr(10) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & "Best Regards" & Chr(10) & Chr(10) & Nz(DLookup("[EmailName]","tblCompanyInfo") & Chr(10) & Nz(DLookup("[CompanyName]", "tblCompanyInfo"), ""))
DoCmd.Close
Exit_Command12_Click:
    Exit Sub

Err_Command12_Click:
     MsgBox "Your E-Mail has not been sent!", vbApplicationModal + vbInformation + vbOKOnly
     DoCmd.Close
    Resume Exit_Command12_Click
End Sub


Viewing all articles
Browse latest Browse all 14673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>