andymartin3186
Member
- Local time
- Today, 23:11
- Joined
- Dec 10, 2024
- Messages
- 76
Hi,
I have a button on my job form which emails a delivery note to the particular customer contact email address on the job.
I also have in my customers table a PODEmail field where I can add other people in as the CC section of the delivery note email. These are entered and seperated by a ;
The trouble is when a particular customer does not have any PODEmail email addresses stored, and only the main contact email is in the to field. Access brings an error because its trying to look for a string to place into the cc part of the operation, and the string is null I'm assuming.
I get a 94 invalid use of null error
Is there anything I can do so that when the string is null, it inserts something like "" into the cc field rather than null?
I tried
If IsNull(Me.PODEmail) Then PODEmailCC = ""
but it still errors.
I have a button on my job form which emails a delivery note to the particular customer contact email address on the job.
I also have in my customers table a PODEmail field where I can add other people in as the CC section of the delivery note email. These are entered and seperated by a ;
The trouble is when a particular customer does not have any PODEmail email addresses stored, and only the main contact email is in the to field. Access brings an error because its trying to look for a string to place into the cc part of the operation, and the string is null I'm assuming.
I get a 94 invalid use of null error
Is there anything I can do so that when the string is null, it inserts something like "" into the cc field rather than null?
I tried
If IsNull(Me.PODEmail) Then PODEmailCC = ""
but it still errors.
Last edited: