Hi guys.
First of all, thanks to MajP, isladogs, pat Hartmann, GPGeorge, Arnelgp , and anyone I might have forgotten for the discussion on not misusing ms Access by creating controls dynamically, and for the advice and discussion on the topic.
It was merely out of laziness that I didn't want to change my application, but in the long run, it does make sense, after I saw how a continuous form could be.
So, just to give you information on my particular problem and why I resorted falsely to creating controls dynamically:
I have tables of information which I can use to create tabs and listed control on these tabs.. the information changes quite regularly, so I need a way of creating the information dynamically.
I have tabs which are topics, and with each topic, I have text boxes and combo boxes which need to be displayed and editable,as well as contents for labels, next to these boxes of course. So, I stupidly thought I would create everything with
Set CTL=CreateControl("formname",aclabel or acTextbox or accombobox,etc ...
After all, each tab has a different composition of various boxes.
I then have a large drop down table where I fill the combo boxes involved.
Now, the reason I hope to have less problems when using continuous forms is with the "save" function. I have two of these.. the important one is a save function which records the name of the user on the dataset, after checking that all girls are filled out, or selected. The 2nd save is to save a temporary state, so it saves without a " signature" and allows the user to continue later. I have solutions to all of that, but I need to fiddle with form.dirty on before_update, which is a method not very nice, and seems to not work properly. So now I'm all ears as to how I can use continuous forms in tabs to get what I want with form header and footer of continuous forms In tabs..that's possible, right?
First of all, thanks to MajP, isladogs, pat Hartmann, GPGeorge, Arnelgp , and anyone I might have forgotten for the discussion on not misusing ms Access by creating controls dynamically, and for the advice and discussion on the topic.
It was merely out of laziness that I didn't want to change my application, but in the long run, it does make sense, after I saw how a continuous form could be.
So, just to give you information on my particular problem and why I resorted falsely to creating controls dynamically:
I have tables of information which I can use to create tabs and listed control on these tabs.. the information changes quite regularly, so I need a way of creating the information dynamically.
I have tabs which are topics, and with each topic, I have text boxes and combo boxes which need to be displayed and editable,as well as contents for labels, next to these boxes of course. So, I stupidly thought I would create everything with
Set CTL=CreateControl("formname",aclabel or acTextbox or accombobox,etc ...
After all, each tab has a different composition of various boxes.
I then have a large drop down table where I fill the combo boxes involved.
Now, the reason I hope to have less problems when using continuous forms is with the "save" function. I have two of these.. the important one is a save function which records the name of the user on the dataset, after checking that all girls are filled out, or selected. The 2nd save is to save a temporary state, so it saves without a " signature" and allows the user to continue later. I have solutions to all of that, but I need to fiddle with form.dirty on before_update, which is a method not very nice, and seems to not work properly. So now I'm all ears as to how I can use continuous forms in tabs to get what I want with form header and footer of continuous forms In tabs..that's possible, right?