Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using Variables in Strings (A2k (9.0.3821) SR-1)

    Using Variables in Strings

    A2k (9.0.3821) SR-1

    Having problem wrapping the second line with proper delimiter character

    strSQL = strSQL & "tblContractor.strLicenseNo, tblContractor.strBusinessAddr1, "

    strSQL = strSQL & "[strBusinessCity] & " " & [strBusinessState] & " " & [strBusinessZip] AS CityStZip, "

    strSQL = strSQL & "tblContractor.strBusinessWorkPhone, tblContractor.strInsuranceCo, "

    Any syntax help would be appreciated

    Thanks, John

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Using Variables in Strings (A2k (9.0.3821) SR-1)

    I'm unclear as to what you are trying to do here. Could you show what you want the final value of SQL to look like?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  3. #3
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using Variables in Strings (A2k (9.0.3821) SR-1)

    I think u want it like this:
    strSQL = strSQL & "[strBusinessCity] & ' " & [strBusinessState] & " ' & [strBusinessZip] AS CityStZip, "

    where there's an extra space in there for visibility.

    I have found the vba String tool quite useful in this area (comes with axp dev version)

Posting Permissions

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