Hey guys,
I need to pass to some of my forms a parameter, while I'm loading them. For example, if I have a form with an ADODC Control and I would like to load the form with a diffrent RecordSource each time, I would like to be able to pass to the form that RecordSource, when I call it from another form.
Is there a way to pass a var to a form while calling it? Something like calling the app with a parameter (For example Project1.exe Hello) and use the Command var.
Right now I'm using a public Vars in the module. I'm sure there's a better way.
Thanks,
Dave.
I need to pass to some of my forms a parameter, while I'm loading them. For example, if I have a form with an ADODC Control and I would like to load the form with a diffrent RecordSource each time, I would like to be able to pass to the form that RecordSource, when I call it from another form.
Is there a way to pass a var to a form while calling it? Something like calling the app with a parameter (For example Project1.exe Hello) and use the Command var.
Right now I'm using a public Vars in the module. I'm sure there's a better way.
Thanks,
Dave.