Urgent help needed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Excuse my ignorance but I am trying to get a button to send a certain email
and have done this by using

"Dim sendto as string, mysubject as string, mymessage as string.....etc

but my message seems to be too long for one line of coding. How do i get it
to recognize that the line below is a continuation?

Any help would be greatly appreciated

Thanks
 
The line continuation character is the underscore and it must be preceded by
a space:

Dim sendto as string, mysubject as string, _
mymessage as string
 
Fab

Your description didn't cover "why" you need to put all those on a single
line of code.

What about using one line per "Dim", something like:

Dim sendto as String
Dim mysubject as String
Dim mymessage as String
Dim ...

Regards

Jeff Boyce
<Office/Access MVP>
 
apologies i didnt explain myself very well, i just put that line of code in
to show what format i was using. The actual line of coding i was having
trouble with was the 'message' part, e.g my message = bla bla bla.

Anyway, space, underscore worked fine, thank you both for responding. I knew
it would be something simple but when you dont know it is sometimes quite
difficult to find out quickly.

Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SendObject Email 2
Emailing information about a specific record 4
How to CC in an email 9
BCC Email 3
Email Issue 1
Email problem 5
Send email with optional message from combo box? 6
Email fro FORM 4

Back
Top