Results 1 to 5 of 5
  1. #1
    Always_Learning is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    9

    Getting whole value from a string variable

    Hi There,

    I am trying to find an error in my code.
    I have added the variable to the watch list but I cannot copy the whole value from the watch list.
    How can I get the full value of the string variable?

    Thanks for your help.

    Best Regards,



    Steve

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Exactly how long is the string value?
    How about if you use a MsgBox?

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    If the variable appears in the Watch List as having a value, it is in scope and should be available in the Immediate Window at that time (When it is in the Call Stack). So, you should be able to determine the value of a variable that is in scope by typing ? and the variable name in the Immediate window, then hit the Enter key on your keyboard.
    ?strMyVariable

  4. #4
    Always_Learning is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    9
    Hi There,

    Using the immediate window worked for me.

    Thanks for your quick reply.

    Best Regards,

    Steve.

  5. #5
    Always_Learning is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    9
    Hi Joe,

    Thanks for the reply.
    I have got this working now.
    My string was holding a select statement that I could not see fully.

    Best Regards,

    Steve.

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

Similar Threads

  1. Use a string to refer to a variable
    By kdbailey in forum Access
    Replies: 5
    Last Post: 12-15-2015, 10:50 PM
  2. Using Variable String to Set a Form object
    By neo651 in forum Programming
    Replies: 17
    Last Post: 07-08-2013, 12:59 PM
  3. Replies: 3
    Last Post: 05-28-2013, 12:53 PM
  4. Extract Value from Variable in String
    By nguyenak in forum Programming
    Replies: 3
    Last Post: 05-24-2012, 03:50 PM
  5. Using a string variable to specify a control
    By Gerry in forum Programming
    Replies: 3
    Last Post: 04-14-2010, 02:28 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