I am trying to pass the reference to an ADODC control to a function. The control is on a form and the function is in a class mod. I can reuse this function code if I can make the ADODC variable (there are three different ones on different forms). For example:
Public Function Load_Data_Values(objAdoSource as control) as Long
frmMain.txtHeader(0).text = objAdoSource.Recordset.Fields!Field1
So, I cannot figure out how the pass the value from the calling program. Appreciate any help
Public Function Load_Data_Values(objAdoSource as control) as Long
frmMain.txtHeader(0).text = objAdoSource.Recordset.Fields!Field1
So, I cannot figure out how the pass the value from the calling program. Appreciate any help