Class module doesnot work help please

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
 
D

Douglas J. Steele

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?
 
M

Marshall Barton

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
 
L

lawrence

Thanks very much for your help . It worked just fine.

"Marshall Barton дµÀ£º
"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top