ikzouhetnietweten
Registered User.
- Local time
- Today, 05:20
- Joined
- Oct 23, 2015
- Messages
- 44
When I click in the form on the 'TO OUTLOOK' button after filling in some fields i get the error. It used to work but It says there is an expression error. Any idea how to solve it? thanks!
(when clicking on the button, your outlook will open and all the fields will be automatically filled in as a contact in your outlook)
Error: Run-time error '2465' can't find the field '|1' referred to in your expression
(when clicking on the button, your outlook will open and all the fields will be automatically filled in as a contact in your outlook)
Error: Run-time error '2465' can't find the field '|1' referred to in your expression
Code:
Private Sub Command335_Click()
With olContact
.FirstName = Nz([FirstName], "")
.LastName = Nz([LastName], "")
.JobTitle = Nz([JobTitle], "")
.CompanyName = Nz([Company], "")
.BusinessAddressStreet = Nz([Address], "")
.BusinessAddressCity = Nz([City], "")
.BusinessAddressState = Nz([StateProvince], "")
.BusinessAddressCountry = Nz([CountryRegion], "")
.BusinessAddressPostalCode = Nz([ZIPPostalcode], "")
.BusinessTelephoneNumber = Nz([BusinessPhone], "")
.BusinessFaxNumber = Nz([Faxnumber], "")
.Email1Address = Nz([EmailAddress], "")
.MobileTelephoneNumber = Nz([MobilePhone], "")
.Display 'use .Display if you wish the user to see the contact pop-up .Save to save
End With
Last edited: