Results 1 to 5 of 5
  1. #1
    uzair_rosli is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    1

    displaying query result as a subform

    when i click 'search button' in my form,the result of query keep opening in a new tab.
    even i've build a subform of that query..
    i just want the result display in that form.


    i'm new here....
    Attached Files Attached Files

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2009
    Location
    India
    Posts
    931

    Requery

    I put this Code on the OnClick Event of your Search Button:


    Code:
    Me.Child33.Requery
    Please find attached your database with modification.
    Attached Files Attached Files

  3. #3
    mirzanauman is offline Novice
    Windows 8 Access 2013
    Join Date
    Feb 2013
    Posts
    2
    thank you very much maximus. i had a similar problem related to my database and i was searching for so many times on google for this. I found exact answer at this site. bundle of thanks

  4. #4
    mirzanauman is offline Novice
    Windows 8 Access 2013
    Join Date
    Feb 2013
    Posts
    2
    Maximus, there is a bit problem in my database. After setting up everything, when i open my form I only see 2 records of 1597 records in my subform query. But in the table i have 1597. what can be reason for this?

  5. #5
    maximus's Avatar
    maximus is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Is it a problem with the subform? Well need more information on the relationships of your tables. Is the record source of your subform a query? If yes check if you have added any criteria to a particular field which might be restricting the display.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-28-2011, 04:29 PM
  2. Replies: 9
    Last Post: 09-26-2011, 09:16 PM
  3. Displaying filtered data in subform
    By crxftw in forum Forms
    Replies: 11
    Last Post: 06-17-2011, 09:59 AM
  4. View Macro Result in subform
    By rato999 in forum Programming
    Replies: 1
    Last Post: 01-23-2011, 09:34 PM
  5. Replies: 0
    Last Post: 03-31-2010, 07: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