Results 1 to 2 of 2
  1. #1
    Dengkee is offline Novice
    Windows 7 Access 2002
    Join Date
    May 2010
    Posts
    4

    how to populate a subform from table

    hi,



    i have a form with a subform, all i need is a button to populate my subform from the table i specify. can anyone help me?


    dennis

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    Your post begs the question of what is your fundamental design that would require a form/subform to be dynamically changing its record source...? It is an unusual requirement and probably a sign that the db design should be changed.

    Having said that, I will enable you further in this potentially bad design with the technical solution as follows:
    If you want to change the recordsource of a subform use: Me.NameOfSubformcontrol.Form.RecordSource = "NameOfRecordSource"

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

Similar Threads

  1. Replies: 0
    Last Post: 05-12-2010, 10:08 PM
  2. How to populate a subform using a record set
    By new2access123 in forum Forms
    Replies: 5
    Last Post: 03-01-2010, 10:32 PM
  3. Use form to populate a table from another table
    By sammer021486 in forum Forms
    Replies: 3
    Last Post: 09-28-2009, 09:06 AM
  4. form data will not populate in table
    By bobsakamato in forum Access
    Replies: 1
    Last Post: 09-06-2009, 07:25 AM
  5. Replies: 0
    Last Post: 06-23-2009, 03:01 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