Class module doesnot work help please

  • Thread starter Thread starter lawrence
  • Start date Start date
L

lawrence

Hi,all

I create a class module named clsFlexgrid in a mde which works fine in
the current database. I want to reuse the class module in another mdb
and reference the module mdb,but i does not work.

usage:

dim oFlgrid as clsflexgrid
set oFlgrid =new clsflexgrid

with oFlgrid
set .setFlgrid=me.msflexgrid0.object
...
end with



Can anyone help?


Thanks in advance,

Lawrence
 
Sorry, "does not work" doesn't give us anything to go on.

What happens when you try to use the code? Do you get an error? If so,
what's the error? If you don't get an error, what happens?
 
lawrence said:
I create a class module named clsFlexgrid in a mde which works fine in
the current database. I want to reuse the class module in another mdb
and reference the module mdb,but i does not work.

usage:

dim oFlgrid as clsflexgrid
set oFlgrid =new clsflexgrid

with oFlgrid
set .setFlgrid=me.msflexgrid0.object
...
end with


Take a look at:
http://www.mvps.org/access/modules/mdl0034.htm
 
Thanks very much for your help . It worked just fine.

"Marshall Barton дµÀ£º
"
 
Back
Top