Results 1 to 3 of 3
  1. #1
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Different ControlSource values for different controls

    I have a form that is based off of a query. Although, aside from the main data being displayed, I have a small set of 4 text boxes that I want to retrieve data from a query that isn't the one set as the forms's control source. I'm getting the #Name? error. Is it possible to have a few controls in a form that retrieve data from a different data set? Thanks.

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    A form may be bound to only one table or query. If you have other controls that you wish to display data for that is from a different table or query, then you will need to have a subform bound to that other object. You can then link the mainform and subform using a parent/child relationship linked on a common field.

    Alan

  3. #3
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200
    Quote Originally Posted by alansidman View Post
    A form may be bound to only one table or query. If you have other controls that you wish to display data for that is from a different table or query, then you will need to have a subform bound to that other object. You can then link the mainform and subform using a parent/child relationship linked on a common field.

    Alan
    I know there can only be one data source for the form. So if I have a control that I want to display data from a dataset other than the form source, I can't just indicate that in the control source for that control? I did something like this:

    Code:
    =[qryCapacityTable]![EquipmentCapacity]
    There isn't a relationship between the form data and these seperate controls. i want them to be seperate, but still be able to display other data in these controls. Any other options since they aren't related?

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

Similar Threads

  1. form Controls
    By dref in forum Forms
    Replies: 2
    Last Post: 07-22-2011, 03:31 PM
  2. Controls within form
    By crowegreg in forum Forms
    Replies: 4
    Last Post: 05-31-2011, 08:39 AM
  3. Hiding controls
    By gg80 in forum Forms
    Replies: 3
    Last Post: 05-21-2011, 03:21 PM
  4. Subform ControlSource Popup issue
    By GraemeG in forum Forms
    Replies: 10
    Last Post: 04-07-2011, 11:52 AM
  5. Tab Controls
    By karlhardeman in forum Forms
    Replies: 10
    Last Post: 08-25-2010, 07:01 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