Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    NISMOJim is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    273
    Sorry again, I don't understand how to enter it. Here's what I entered, getting a syntax error...
    sBody = sBody & rst.Fields(1) & ", " & rst.Fields(2) &nbsp & " " & rst.Fields(3) & "<BR>"

  2. #17
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    I haven't tested it but I assume you'd need a

    & "nbsp;" &

    wherever you wanted a space inserted.

  3. #18
    NISMOJim is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    273
    When I try it that way, it just adds nbsp; to the e-mail text between the name & company. I tried it without the quotes & get an error expecting end of statement (it doesn't like the semicolon). I left off the semicolon & still only get one space between the name & company instead of the three that I would like. Also tried putting the nbsp before the inserted spaces, and later tried it after the spaces & still only get one space out of it. Sure is frustrating for just a stupid bit of asthetics!

  4. #19
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    if it took the everything but the semi colon try using the same code repeatedly


    "nbsp" & "nbsp" & "nbsp"

    for three spaces etc.

  5. #20
    NISMOJim is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    273
    Like everything else I've seen, when you put something in quotes, that is what shows up on the sheet. Like I mentioned above, I tried it without the quotes & without the semicolon and still don't get the extra spaces no matter how many times I add it to the code. Are you getting different results with the database copy I sent?

  6. #21
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Try this:

    ok that was a failure

    & #160 ;

    but take out the space after the & and the space before the ; if you string several of them together you can create multiple spaces

    Put this in wherever you want a space (has to be inside " marks")

  7. #22
    NISMOJim is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    273
    That makes so little sense to me. I never would have come up with that no matter how long I tried, but it works perfectly. Thanks for not getting tired of me & sticking it out to the end, I so appreciate it!

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 05-14-2012, 07:24 AM
  2. Replies: 11
    Last Post: 09-12-2011, 11:30 AM
  3. Replies: 3
    Last Post: 02-21-2011, 09:57 AM
  4. Using a pass-through query in mail merge
    By ss1289 in forum Access
    Replies: 0
    Last Post: 09-17-2010, 08:58 AM
  5. E-mail query
    By Ize in forum Queries
    Replies: 1
    Last Post: 12-09-2009, 09:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums