By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,560 Members | 2,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,560 IT Pros & Developers. It's quick & easy.

Setting subforms Sourceobject. Dangerous?

TheSmileyCoder
Expert Mod 100+
P: 2,321
Im using a subform control on my main form.

Depending on which button I click, I will swap the sourceobject of the subform control.

So clicking the button for frmExample, i would do:
Expand|Select|Wrap|Line Numbers
  1. subFrmControl.SourceObject="frm_Example"
Is there any "danger" in doing this?

I realise I could also just load all the various subforms, and then either put them in a page tab control, or show/hide them when people click the buttons.
However, this aproach means that the frontend only "retrieves" the Data from the backend for the subform the user wants to see, which can save a bit of time for people on a slow connection.
Jan 23 '10 #1
Share this Question
Share on Google+
2 Replies


nico5038
Expert 2.5K+
P: 3,072
It's all about the response time being once slow and than fast or every time "mediocre".
In general I prefer to go for a "slow start" and fast afterwards, as people tend to forgive the long startup (compare starting MS Windows) and remember the speed afterwards. So I would use a tabbed control with all subforms.
Only when the initial loading time isn't acceptable I would switch to your "dynamic" option.

Nic;o)
Jan 23 '10 #2

NeoPa
Expert Mod 15k+
P: 31,494
@TheSmileyOne
Not that I'm aware of.

Nico has made a point worth considering. From there I guess you would see if the time cost of the load is appreciable. If it is, then consider the tabbed approach. If not, you have a pretty sweet and clever solution.
Jan 24 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.