Results 1 to 2 of 2
  1. #1
    aamer is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    276

    Requery Problem - Cannot Requery Combox Box on a Subform

    I am unable to do the Requery the subform.


    I need help on how to Requery the combo "TranIDCbo" on the "InvoiceSubfrm" subform

    Also on the "SaleDetailByDateFrm" If The Date in "Combo121" Combo box Is Blank It Shoud Not Show Sales Details in form "SaleDetailByDateSubFrm", how can I fix that It Only Shows If Date Is Selected.

    A sample DB is attached.
    Sample 2 Fix.zip

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Where are you executing the code?
    Forms: Refer to Form and Subform properties and controls

    Re the sale form. If you add the combo as criteria in the subform recordsource query then that will happen automatically.
    However better to link mainform and subform by the required fields?

    FWIW developers generally do not use macros. I am not a developer and I still do not use them. VBA is far more flexible and more importatntly, easier to debug.
    I'd advise you to start using VBA, plus so many more examples out there for VBA.

    Also look at Youtube, plenty of videos on there to get started.
    Attached Files Attached Files
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Requery Problem
    By Erictsang in forum Queries
    Replies: 8
    Last Post: 09-05-2017, 11:33 AM
  2. AfterUpdate requery does not requery list box
    By ittechguy in forum Programming
    Replies: 5
    Last Post: 09-05-2017, 08:51 AM
  3. Problem with requery statement
    By crowegreg in forum Forms
    Replies: 2
    Last Post: 09-15-2014, 09:26 AM
  4. requery subform
    By nswhit in forum Forms
    Replies: 2
    Last Post: 05-16-2013, 09:34 AM
  5. Drop down box requery problem
    By Nicholas in forum Forms
    Replies: 1
    Last Post: 08-11-2006, 11:42 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