Results 1 to 4 of 4
  1. #1
    LosLobo is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    3

    Displaying data from autopopulating unbound text boxes in reports

    Hello all:

    I'm sure that this has been asked and answered many times over here, but after a week of scouring dozens of help forums on the internet for an answer I was too lazy to search again here.

    I have a form that contains an unbound text box that autopopulates based on data entered in a combobox. I built a query to pull the autopopulating data from a different table than my "main" table....and it works fine. The autopopulating text box displays the data in the form, but not in the table it is linked to. I understand that is normal because the text box is "unbound" and it is not a big concern.



    Now....my problem. I want to set up a button on my form that will open a report showing all the fields in my form, including the unbound autopopulating text box, and I can't get it to work. I've tried literally dozens of pieces of VBA code based on my internet searches, and nothing is getting the job done.

    I'm sure you'll want more details on this, so if you think you can help please reply and I look forward to working with you!

    Thanks!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    copy and paste the control from your form to the report and in the CONTROL SOURCE of the object on the report put

    =forms!formname!autofill_fieldname

    where formname is the actual name of your form and autofill_fieldname is the name of the control that has the value you want on your form.

    This assumes the form will be open when you open the report as well.

  3. #3
    LosLobo is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    3
    Quote Originally Posted by rpeare View Post
    copy and paste the control from your form to the report and in the CONTROL SOURCE of the object on the report put

    =forms!formname!autofill_fieldname

    where formname is the actual name of your form and autofill_fieldname is the name of the control that has the value you want on your form.

    This assumes the form will be open when you open the report as well.
    Thank you for that suggestion! I will try it first thing in the morning when I get into my office and let you know how it went.

  4. #4
    LosLobo is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    3
    Quote Originally Posted by rpeare View Post
    copy and paste the control from your form to the report and in the CONTROL SOURCE of the object on the report put

    =forms!formname!autofill_fieldname

    where formname is the actual name of your form and autofill_fieldname is the name of the control that has the value you want on your form.

    This assumes the form will be open when you open the report as well.
    It looks like that did the trick!!

    Thank you for saving me from losing any more hair....I really appreciate the assist!

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

Similar Threads

  1. Replies: 4
    Last Post: 08-14-2012, 10:33 AM
  2. Using Unbound text boxes
    By rbiggs in forum Reports
    Replies: 4
    Last Post: 08-16-2011, 04:05 PM
  3. Unbound Text boxes
    By kyleg222 in forum Forms
    Replies: 2
    Last Post: 08-02-2011, 12:53 PM
  4. Replies: 0
    Last Post: 06-15-2011, 07:02 AM
  5. Unbound Text box in reports
    By Overdive in forum Reports
    Replies: 1
    Last Post: 02-17-2010, 09:52 AM

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