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

Поделиться
HTML-код
  • Опубликовано: 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:
    RUclips: / @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

  • @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!

  • @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.

  • @petewarby7158
    @petewarby7158 11 месяцев назад +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.🤪🤣

  • @user-og3qr9jn5n
    @user-og3qr9jn5n 4 месяца назад

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

  • @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.

  • @ssdusd
    @ssdusd Год назад

    Thank you so much for bonus information!!

  • @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

  • @shakey3258
    @shakey3258 Год назад +1

    Love the fast tips vids, short or long👍

    • @599CD
      @599CD  Год назад +1

      Good to hear!

  • @anneg8294
    @anneg8294 Месяц назад

    Thank you

  • @abdulhamidalhaddadi2255
    @abdulhamidalhaddadi2255 Год назад

    Great Teacher

    • @599CD
      @599CD  Год назад

      Thank you! 😃

  • @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

  • @theperfectionist3924
    @theperfectionist3924 Год назад

    dude tNice tutorials is super good! subbed

  • @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

  • @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!

  • @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.

  • @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

  • @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

  • @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  7 месяцев назад

      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

  • @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

  • @jimcornwell4900
    @jimcornwell4900 2 месяца назад

    Can I do this with a report?

  • @easyspeak101
    @easyspeak101 5 месяцев назад

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

    • @599CD
      @599CD  5 месяцев назад

      Everything good requires practice

  • @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.

  • @MOHAMED_MASRI
    @MOHAMED_MASRI 5 месяцев назад

    🙏🙏🙏🙏🙏🙏

    • @599CD
      @599CD  4 месяца назад +1

      Welcome

  • @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/RUclips-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 RUclips. Feel free to submit your question on my website at: 599cd.com/AskYT