Results 1 to 4 of 4
  1. #1
    millerdav99 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    10

    Concatenate Quotation Marks


    This is probably a dumb one, but I've looked through my books and I cannot find anything on this.

    I have a value in a combo box that I want to set as the default value, so I need to put quotation marks around the value. How the heck do I put quotation marks on the end.

    If i use the triple quotes it seems to only pick up the string in the middle. here is example of what I have.

    Code:
    strTechName = """ & Me.cbxTechName & """
    What ends up getting stored is
    " & Me.cbxTechName & "

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    there are too many ways to do this. for instance, Allen Browne gives examples using the triplicate """ combinations. the way I use is:

    Code:
    """" & me.value & """"

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  4. #4
    millerdav99 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    10
    Thanks! Both of your replies are basically the same thing. The variable method is a good idea.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 0
    Last Post: 02-17-2011, 02:08 PM
  2. Transferring text within quotation marks
    By Lynette in forum Access
    Replies: 6
    Last Post: 11-24-2010, 11:58 AM
  3. concatenate
    By stephenaa5 in forum Programming
    Replies: 2
    Last Post: 10-11-2010, 05:18 PM
  4. Concatenate Formula
    By Shingo in forum Programming
    Replies: 1
    Last Post: 07-25-2009, 09:14 AM
  5. Replies: 1
    Last Post: 10-23-2006, 03:45 PM

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