Results 1 to 5 of 5

Thread: [RESOLVED] Textbox return

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Long Island, NY.
    Posts
    353

    Resolved [RESOLVED] Textbox return

    I resolved a thread, but still need help. I created a little access database to take three text boxes and combine them into one. But I keep getting a You can't reference a property or control that doesn't have focus. What is the way around it? I attached a zip of it..
    Attached Files Attached Files

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Textbox return

    in access u cant reference the .Text Value unless it has focus (As stated)
    instead use Text1.Value

    (or is it the other way around?? lol)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Textbox return

    Access VBA question moved to Office Development.

  4. #4
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: Textbox return

    You could .SetFocus the textbox, get the text in a string variable, .SetFocus the next, add that text to the variable, etc, then set the text of the destination textbox. That's a generic way of referencing controls.
    Tengo mas preguntas que contestas

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Long Island, NY.
    Posts
    353

    Re: Textbox return

    Quote Originally Posted by Static
    in access u cant reference the .Text Value unless it has focus (As stated)
    instead use Text1.Value

    (or is it the other way around?? lol)
    Thanks! That was it. I really needed that too, it happens all the time.

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