How to Requery Records in a Subform Based on Criteria From the Parent Form in Microsoft Access

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2022
  • In this Microsoft Access tutorial, I'll teach you how to requery records in a subform based on values from the parent form. For example, we'll requery a list of contacts for a specific customer between two dates specified on the customer form.
    LEARN MORE:
    599cd.com/RequerySubform
    PRE-REQUISITES:
    Customer Contact Template: 599cd.com/Contacts
    Value From a Form: 599cd.com/FormName
    Intro to VBA: 599cd.com/IntroVBA
    AfterUpdate: 599cd.com/AfterUpdate
    RECOMMENDED COURSES:
    Access Developer Courses: 599cd.com/Developer
    LINKS
    ISO Dates: 599cd.com/ISO
    Query Criteria: 599cd.com/Criteria
    Between Wrong: 599cd.com/Between
    Tab Stop, Order, Cycle: 599cd.com/TabOrder
    Enter Parameter Value: 599cd.com/EPV
    BECOME A MEMBER:
    TH-cam: / @599cd
    or My Site: 599cd.com/THMember
    ADDITIONAL RESOURCES:
    FREE Access Beginner Level 1: 599cd.com/Free1
    $1 Access Level 2: 599cd.com/1Dollar
    Donate to my Tip Jar: 599cd.com/TipJar
    Get on my Mailing List: 599cd.com/YTML
    Contact Me: 599cd.com/Contact
    TechHelp: 599cd.com/TechHelp
    Consulting Help: 599cd.com/DevNet
    Twitter: / learningaccess
    en.wikipedia.org/wiki/Microso...
    products.office.com/en-us/access
    microsoft.com/en-us/microsoft...
    KEYWORDS
    access 2016, access 2019, access 2021, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, #fasttips, requery subform, filter subform, between dates, value from a subform, Fields on a subform, Forms!ParentFormName!SubFormName.Form!FieldName, recordsource query to SQL statement, SubForm.Requery, Requery a subform from another form, Refresh the contents of a subform, subform requery with update on main form
    QUESTIONS:
    Please feel free to post your questions or comments below. Thanks.

ความคิดเห็น • 54

  • @jerrydfowler3480
    @jerrydfowler3480 ปีที่แล้ว

    Richard love your videos, so much info. I use something like this in my database but have set buttons up for TODAY, THIS WEEK, THIS MONTH, THIS YEAR, TODAY TO END OF YEAR. Works like a charm.

    • @599CD
      @599CD  ปีที่แล้ว

      Sweeet

  • @sbkucin222
    @sbkucin222 ปีที่แล้ว +2

    Richard, you have been a machine turning out these videos lately, much appreciated.

    • @599CD
      @599CD  ปีที่แล้ว +1

      It's what I do. :)

  • @luzkrg
    @luzkrg ปีที่แล้ว +2

    LOVED IT!!! 🤩🤩🤩 Sometimes I think “thank you” seems so little in comparison on how grateful I am with you and your videos. MUCHAS GRACIAS Richard!!!

    • @599CD
      @599CD  ปีที่แล้ว

      You are so welcome!

  • @user-og3qr9jn5n
    @user-og3qr9jn5n 3 หลายเดือนก่อน

    Can't thank you enough.... Really appreciate your videos.

  • @petewarby7158
    @petewarby7158 10 หลายเดือนก่อน +1

    Absolutely amazing. BRILLIANT. So handy... honestly. I have been binging your videos for a few weeks now playing catch up and the difference it's made to my own little database is phenomenal. It's turned my Db in to something pretty professional and clever as opposed to the caveman thing I initially made a few weeks ago. You're a megastar.

    • @DingusBatus
      @DingusBatus 4 หลายเดือนก่อน

      Comparing my skills with Richard then I’m not even as advanced as a caveman. 🤣🤪 I’m a dinosaur.🤪🤣

  • @rogerstrate5727
    @rogerstrate5727 ปีที่แล้ว

    I love your fast tip videos and would enjoy "fast tip videos" if they were an hour long. Keep 'em comin'.

    • @599CD
      @599CD  ปีที่แล้ว

      Thanks. Yeah, I've gotten some complaints that they're too long for "fast" tips. Sorry! I didn't start out meaning for them to be 30 minutes long. LOL

  • @ssdusd
    @ssdusd ปีที่แล้ว

    Thank you so much for bonus information!!

    • @599CD
      @599CD  ปีที่แล้ว

      Welcome

  • @alanhill769
    @alanhill769 ปีที่แล้ว

    Thanks Richard I purchased your developer classes years ago. I have recently began a new project as a hobby, I am retired now. I could not find out why my subform would not load correctly. I did not figure out the On Load requery as a solution. I was scratching my head. But It was the solution. Thank you

    • @599CD
      @599CD  ปีที่แล้ว

      You're very welcome.

  • @shakey3258
    @shakey3258 ปีที่แล้ว +1

    Love the fast tips vids, short or long👍

    • @599CD
      @599CD  ปีที่แล้ว +1

      Good to hear!

  • @moodkn
    @moodkn ปีที่แล้ว

    Thanks!
    With great technique and fun
    I also, use like these queries in my database program the same way but a little differently than you.
    You have more ways

    • @599CD
      @599CD  ปีที่แล้ว

      Welcome

  • @anneg8294
    @anneg8294 หลายเดือนก่อน

    Thank you

  • @abdulhamidalhaddadi2255
    @abdulhamidalhaddadi2255 ปีที่แล้ว

    Great Teacher

    • @599CD
      @599CD  ปีที่แล้ว

      Thank you! 😃

  • @kaitlynmm569
    @kaitlynmm569 หลายเดือนก่อน

    Quick question. I noticed at 30:57 when you showed us the date query result, that the date 2022-09-05 was still being filtered through, even though the end date was 2022-01-01. Was this intended? Edit: I noticed that this row is an entry row, so I believe I just answered my own question

  • @LeangEngLon
    @LeangEngLon ปีที่แล้ว

    thank you very much for your sharing a very good video lesson.
    If possible, please share me "how to password to protect the table to avoid from deleting or editing...?

    • @599CD
      @599CD  ปีที่แล้ว

      599cd.com/Security

  • @solarycreativo
    @solarycreativo ปีที่แล้ว

    Mr Richard Mr Richard I appreciate for your videos, I want to know is it possible to make a unbound subform and when I save one register in unbound main form also save all register of my unbound form? thanks

    • @599CD
      @599CD  ปีที่แล้ว

      Unbound forms by definition don't save anything anywhere unless you code it yourself.

  • @jimcornwell4900
    @jimcornwell4900 หลายเดือนก่อน

    Can I do this with a report?

  • @theperfectionist3924
    @theperfectionist3924 ปีที่แล้ว

    dude tNice tutorials is super good! subbed

    • @599CD
      @599CD  ปีที่แล้ว

      Thanks

  • @argieamora8716
    @argieamora8716 ปีที่แล้ว

    Hi Richard, I would like to know if this will apply also if the parent and subform do not have a relationship? I followed the instructions but it doesn't wok. I hope you could give some tips on how to do it. Thanks!!!

    • @599CD
      @599CD  ปีที่แล้ว

      599cd.com/ask

  • @manishkashikar9154
    @manishkashikar9154 ปีที่แล้ว

    Wow! What a class, even if am bit low on English I got everything I wanted. thanks so much. How do I go for step by step, because am just beginner despite I crossed 50 but very curious about access, Please suggest, Regards

    • @599CD
      @599CD  ปีที่แล้ว

      Glad you liked it!

  • @DingusBatus
    @DingusBatus 4 หลายเดือนก่อน

    It’s so obvious yet I never gave it a thought.
    Use the GUI to build the query and generate the SQL the easy way.
    Copy the SQL from the query into the data source then delete the query.
    I build databases, and spreadsheets, just for fun, none of them ever get used; not proper in a business/professional setting anyway, there is a couple I use personally.
    Your way certainly tidied things up.😀
    Hmm?🤔 If that’s the sort of things you get up to in the extended cut…🤔🤔🤔

    • @599CD
      @599CD  4 หลายเดือนก่อน

      Yeah lots of tips in the extended cuts

  • @restrepojorgea
    @restrepojorgea 7 หลายเดือนก่อน

    Excellent video as always. I have a question. Suppose I have a report in which the record source is a query. That query uses criteria based on a value from a form. Now I have two different forms from which I would like to generate the same report, but I do not want to have two queries/reports. If I use values from two forms, then I get the missing parameter message when only one form is open. Can you suggest a way around this ? Thanks.

    • @599CD
      @599CD  6 หลายเดือนก่อน

      I'm not sure I follow you since you're a member. Why don't you go ahead and post this on the forum on the website, and the guys and I will do our best to give you some help? Sometimes, it's best if I can see what you're working with to give you some ideas. It's hard to picture it just from words. 599cd.com/Forums

  • @michellearnon3931
    @michellearnon3931 ปีที่แล้ว

    Hello! Relative to my questions, how do I display a single report with multiple entry in a subform just like the one in the video. Or how can I print a report using a subform?

    • @599CD
      @599CD  ปีที่แล้ว

      See 599cd.com/Invoicing

    • @michellearnon3931
      @michellearnon3931 ปีที่แล้ว

      @@599CD thank you, I will try this... And I will see if I can do it...

    • @michellearnon3931
      @michellearnon3931 ปีที่แล้ว

      Hello! I got it with the single printing of report and thank you for that. But how about I go with printing all the reports using a date range? Cause I have tried it, but it just displays all the details of that particular period instead of showing the reports with their corresponding name of clients.

  • @michellearnon3931
    @michellearnon3931 ปีที่แล้ว

    Hello! I would like to ask, how to fix a report printing multiple records from a subform?

    • @599CD
      @599CD  ปีที่แล้ว

      I don't understand

    • @michellearnon3931
      @michellearnon3931 ปีที่แล้ว

      @@599CD thank you for replying. The thing is, I have a problem when printing a report. Because it would display multiple reports depending on the count of rows that I have entered under the record of member.

  • @natureplus4719
    @natureplus4719 ปีที่แล้ว

    Sir.I have a problem .in ms access ..how to add similar /dublicate records in to database first field.

    • @natureplus4719
      @natureplus4719 ปีที่แล้ว

      Please tell me sir how to do this way...

    • @599CD
      @599CD  ปีที่แล้ว

      Sorry, but based on the information you've given me, I really don't have enough data to help you. Feel free to submit your question with more details (including screen shots) here: 599cd.com/TH-cam-Submit-Question

  • @akokohjoel9854
    @akokohjoel9854 ปีที่แล้ว

    Mr rost, I have challenge, I have main form with subform, how can I undo record in subform with the button on main form?

    • @599CD
      @599CD  ปีที่แล้ว

      I get a ton of questions every day, and I don't have time to answer them all here on TH-cam. Feel free to submit your question on my website at: 599cd.com/AskYT

  • @easyspeak101
    @easyspeak101 5 หลายเดือนก่อน

    Thank you Richard...but it's gonna require practice..🤖

    • @599CD
      @599CD  5 หลายเดือนก่อน

      Everything good requires practice

  • @MOHAMED_MASRI
    @MOHAMED_MASRI 4 หลายเดือนก่อน

    🙏🙏🙏🙏🙏🙏

    • @599CD
      @599CD  4 หลายเดือนก่อน +1

      Welcome