Results 1 to 6 of 6
  1. #1
    Hasher is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2013
    Posts
    13

    Referencing text boxes in a form

    Hi Guys . I have a recordset displayed in a form. Within that form I have added a text box and Button. When I click the button it populates every text box. How do I reference the textbox I want to populate. The text box in the line with the button. I have included a picture to describe my problem. Thanks Paul
    Click image for larger version. 

Name:	regions.png 
Views:	14 
Size:	5.3 KB 
ID:	18981

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    It would populate that record anyway. I suspect your problem is that the textbox doesn't hane a control source, so all records display the same value.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Hasher is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2013
    Posts
    13
    Thanks pbaldy I can understand that. But it just uses the input from the field to perform a function. There is no control source it needs to attach to. can I somehow refer the control source to the recordset ID to form some sort of relationship?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Well, if you populate an unbound textbox on a continuous form, all records will show the same value as per your image. You can pull a value from a bound control for use in something, but I'm not clear on what you're trying to do.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Hasher is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2013
    Posts
    13
    Pbaldy . what I'm basically trying to do is move a record from one Job Number to another. So the user enters into the textbox for the record he wants to move , clicks the button and it moves the record. I have the code working for the move. I dont want to store any information about the move . That is why the Text box is unbound. Everything works besides the all the text boxes filling up.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    An unbound textbox will do that, and to my knowledge you can't stop it. You could use a textbox in the header, or clear the textbox when your process completes so it doesn't distract the user.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. Replies: 2
    Last Post: 08-09-2013, 09:21 AM
  3. Replies: 9
    Last Post: 03-22-2013, 06:37 AM
  4. Referencing unbound text box on report
    By EffenNewGuy in forum Reports
    Replies: 8
    Last Post: 06-22-2011, 11:07 AM
  5. Replies: 15
    Last Post: 09-18-2010, 01:19 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