Results 1 to 4 of 4
  1. #1
    hunsnowboarder is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    14

    Angry Display results on subform based on a query from the main form

    Hi there Everyone!



    I am going crazy with my problem.

    I have a database of companies and their ownership in other companies. I would like to make a form where I can select a company from a drop down menu and once selected I get the results in a subform.

    Half of it is working OK but I have problems with displaying the results.

    I have a main form called "Lekerdezes_urlap". On this main form I have the drop down menu of available companies. When I select a company in the combo box a query () will run selecting the relevant companies.
    My problem is that I do not know how to display the data on this form.
    So far I have the query and a subform of the query. However I do not know how to display it results in the query. My code to the drop down is very simple:
    Code:
    DoCmd.OpenQuery "Lekerdezes_teljes", acViewNormal, acEdit
    This displays the query with the valid results. The subform for this query is "Lekerdezes_teljes". However when I select a company on the drop down menu the new query window opens, shows the results, but when I select the main form tab, the subform is blank.

    How could I display the results directly on the subform?

    Thank you in advance for your help!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    you have to issue the requery from the main form with the proper syntax, something like:

    Me.[subform control name Name].Form.Requery

  3. #3
    hunsnowboarder is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    14
    Thank you for the quick reply. I will try it and will be back with the result!

  4. #4
    hunsnowboarder is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    14
    Thank you very much for your help! It solved my problem! Thank you!

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

Similar Threads

  1. Replies: 1
    Last Post: 06-15-2015, 06:11 AM
  2. Replies: 2
    Last Post: 12-16-2012, 02:35 PM
  3. Replies: 1
    Last Post: 07-20-2012, 09:48 AM
  4. Replies: 3
    Last Post: 03-11-2012, 08:24 PM
  5. Replies: 2
    Last Post: 06-17-2010, 04:15 PM

Tags for this Thread

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