BarryMK
4 strings are enough
- Local time
- Today, 15:13
- Joined
- Oct 15, 2002
- Messages
- 1,350
I’m using the following code behind a command button to send an email with field contents from a form and generally it works fine.
Code
Application.FollowHyperlink "mailto:joe.soap@somewhere.gov.uk;&subject=About improvement logged on QMS1 &body=Record number: " & Me!txtIncidentID & " Raised by " & Me!cmbIdent & " Details are: " & Me!memProbDesc & " Actions listed: " & Me!ActionDesc, , True
End Code
When a user raises an improvement for our ISO system, he free types text into the description field memProbDesc. However If the he types parentheses as part of the text, the email won’t send and I get an Outlook error dialog saying - The command line argument is not valid. Verify the switch you are using.
I don’t want to prevent the users from typing any necessary text characters if possible. Any ideas
Code
Application.FollowHyperlink "mailto:joe.soap@somewhere.gov.uk;&subject=About improvement logged on QMS1 &body=Record number: " & Me!txtIncidentID & " Raised by " & Me!cmbIdent & " Details are: " & Me!memProbDesc & " Actions listed: " & Me!ActionDesc, , True
End Code
When a user raises an improvement for our ISO system, he free types text into the description field memProbDesc. However If the he types parentheses as part of the text, the email won’t send and I get an Outlook error dialog saying - The command line argument is not valid. Verify the switch you are using.
I don’t want to prevent the users from typing any necessary text characters if possible. Any ideas