Results 1 to 2 of 2

Thread: Concatenation with spaces

  1. #1

    Thread Starter
    Member Suidae's Avatar
    Join Date
    Nov 2001
    Posts
    52

    Concatenation with spaces

    I have an Update statement which is working just fine but what I need are spaces between the joined fields. Robert Jones is showing as RobertJones.



    Code:
        sql = "UPDATE tbltmpMobileS, tbldefEIC SET tbltmpMobileS.DESCRIPTION = [tbldefeic].[eic1n] "
        sql = sql & "& [tbldefeic].[eicsumn] "
        sql = sql & "& [tbldefeic].[eicsoun] "
        sql = sql & "& [tbldefeic].[eicmatn] "
        sql = sql & "& [tbldefeic].[eicsubn] "
        sql = sql & "WHERE (((tbltmpMobileS.PROID)=[tbldefeic].[eic]));"

    Help?
    I'm a misanthropic philanthropist!
    Frog, the only white meat...

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Re: Concatenation with spaces

    Originally posted by Suidae
    I have an Update statement which is working just fine but what I need are spaces between the joined fields. Robert Jones is showing as RobertJones.



    Code:
        sql = "UPDATE tbltmpMobileS, tbldefEIC SET tbltmpMobileS.DESCRIPTION = [tbldefeic].[eic1n] "
        sql = sql & "& [tbldefeic].[eicsumn] "
        sql = sql & "& [tbldefeic].[eicsoun] "
        sql = sql & "& [tbldefeic].[eicmatn] "
        sql = sql & "& [tbldefeic].[eicsubn] "
        sql = sql & "WHERE (((tbltmpMobileS.PROID)=[tbldefeic].[eic]));"

    Help?
    Well...

    where in this code is "Robert Jones" supposed to be? Try storing the name in a variable and sending it to the SQL statement that way...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width