If anyone out there can help it is appreciated.
I have created a class module as a data source. In the initialize event I use ADO to open my recordsets. I have code for the "Private Sub Class_GetDataMember(DataMember as String, Data As Object" as follows:
select case datamember
case 1stRs
set data = 1stRs
case 2ndRs
set data = 2ndRs
case 3rdRs
set data = 3rdRs
end select
How do I pass the DataMember value to the Sub? When I try to pass DataMember from another procedure in a form module I get error "Sub or Function not Defined". Making the Sub Public makes no difference, get same error.
I understand that a class module by default is private. If so, how in the world am I going to pass a value to it?? How else would you make the select case work?? I must be missing something.
Thanks to anyone in advance.
TNN, Tom
TNPAYROLL@AOL.COM
[sig]<p>TOM<br><a href=mailto:WWW.TNPAYROLL@AOL.COM>WWW.TNPAYROLL@AOL.COM</a><br>[/sig]
I have created a class module as a data source. In the initialize event I use ADO to open my recordsets. I have code for the "Private Sub Class_GetDataMember(DataMember as String, Data As Object" as follows:
select case datamember
case 1stRs
set data = 1stRs
case 2ndRs
set data = 2ndRs
case 3rdRs
set data = 3rdRs
end select
How do I pass the DataMember value to the Sub? When I try to pass DataMember from another procedure in a form module I get error "Sub or Function not Defined". Making the Sub Public makes no difference, get same error.
I understand that a class module by default is private. If so, how in the world am I going to pass a value to it?? How else would you make the select case work?? I must be missing something.
Thanks to anyone in advance.
TNN, Tom
TNPAYROLL@AOL.COM
[sig]<p>TOM<br><a href=mailto:WWW.TNPAYROLL@AOL.COM>WWW.TNPAYROLL@AOL.COM</a><br>[/sig]