Results 1 to 2 of 2
  1. #1
    quandore is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    15

    Subform: showing no records when first opening my form

    Hi, is there any piece of code that can prevent a subform to display all records every time i open my form?


    My form has 3 combo boxes and 4 text boxes from which i filter the subform by clicking a filter command that requeries the form itself. the problem is: i also have 2 calculation fields that compute a DSUM in the subform's query. so if it shows all the records then the calculations will take a huge amount of time to perform. so i need to have the subform empty when i open the form, then i can filter it with my combo boxes and the calculations will apply to the filtered query.
    hope i made myself clear enough.

    any suggestion?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You might look at removing the RecordSource of the SubForm until you've made your first selection. You could also set the DataEntry property until you've made the first selection. Either one can be done in the OnLoad event of the MainForm.

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

Similar Threads

  1. Replies: 16
    Last Post: 02-13-2012, 03:32 PM
  2. Replies: 18
    Last Post: 01-27-2012, 12:53 PM
  3. Contact Details subform Showing ALL records
    By prouddaughter in forum Forms
    Replies: 4
    Last Post: 01-21-2012, 07:35 AM
  4. Replies: 5
    Last Post: 10-27-2011, 10:25 AM
  5. opening a second form from main/subform
    By PJPCVP in forum Database Design
    Replies: 1
    Last Post: 10-29-2010, 09:50 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