Hi,
I'm trying to reuse one of my form (named CPDetails) as a subform in another new form (SearchCP). My CPDetails form has lots of global variable, most of them are ADODB.Recordset.
My problem is that after the form and subform are initialized, and the form is shown on the screen, all the values in the global variables of my subform(CPDetails) are gone, e.g. all recordsets = nohting and it gives me error message that the object has not been set when I tell it to access the data.
Can anyone suggest me how to solve this problem? Thanks.
I'm trying to reuse one of my form (named CPDetails) as a subform in another new form (SearchCP). My CPDetails form has lots of global variable, most of them are ADODB.Recordset.
My problem is that after the form and subform are initialized, and the form is shown on the screen, all the values in the global variables of my subform(CPDetails) are gone, e.g. all recordsets = nohting and it gives me error message that the object has not been set when I tell it to access the data.
Can anyone suggest me how to solve this problem? Thanks.