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
 
Back
Top