J
jenniferspnc
I've done lots of reading and made changes (on the ones I understood) but my
form takes over a minute to open. I split the database, turned off track
name autocorrect info, and changed subdatasheet to [none].
I am confused on what to do now. I have a form with 10 tabs and 11
subforms. I read this following statement, but it didn't make sense to me,
as I'm not sure how to accomplish.
"a better solution, faster because of less overhead when loading, would be
to have *one* subform, set *under* the tab control so that it "shows through"
on each tab page. then change the subform's SourceObject property to the
appropriate table as you move from one tab to another. same effect from the
user's point of view, but will load faster than multiple subforms"
And I read the below but I'm completely confused on how to fill in.
http://www.granite.ab.ca/access/performanceforms.htm:
Delete the SQL from the RecordSource and RowSource properties of the form,
subforms, comboboxes and listboxes. Now in the Form_Load event load the
appropriate SQL as follows ...
Private Sub Form_Load()
Me.RecordSource = "qryLargeTable"
Me.txtSomeField.RowSource = _
"SELECT SomeField " & _
"FROM qryLargeTable " & _
"GROUP BY SomeField " & _
"ORDER BY SomeField;"
End Sub
The only part I get is that I open each subform and I'm supposed to remove
the "record source" and put code into the "Load Event" correct?
For example, my subform is based off the table "services". I have the
following fields in this subform: partner_id, yes, no, limited. Can someone
provide guidance so I can apply it to the rest of my forms/subforms?
Please let me know if additional detail is needed.
Thanks in advance!
form takes over a minute to open. I split the database, turned off track
name autocorrect info, and changed subdatasheet to [none].
I am confused on what to do now. I have a form with 10 tabs and 11
subforms. I read this following statement, but it didn't make sense to me,
as I'm not sure how to accomplish.
"a better solution, faster because of less overhead when loading, would be
to have *one* subform, set *under* the tab control so that it "shows through"
on each tab page. then change the subform's SourceObject property to the
appropriate table as you move from one tab to another. same effect from the
user's point of view, but will load faster than multiple subforms"
And I read the below but I'm completely confused on how to fill in.
http://www.granite.ab.ca/access/performanceforms.htm:
Delete the SQL from the RecordSource and RowSource properties of the form,
subforms, comboboxes and listboxes. Now in the Form_Load event load the
appropriate SQL as follows ...
Private Sub Form_Load()
Me.RecordSource = "qryLargeTable"
Me.txtSomeField.RowSource = _
"SELECT SomeField " & _
"FROM qryLargeTable " & _
"GROUP BY SomeField " & _
"ORDER BY SomeField;"
End Sub
The only part I get is that I open each subform and I'm supposed to remove
the "record source" and put code into the "Load Event" correct?
For example, my subform is based off the table "services". I have the
following fields in this subform: partner_id, yes, no, limited. Can someone
provide guidance so I can apply it to the rest of my forms/subforms?
Please let me know if additional detail is needed.
Thanks in advance!