User Defined Event procedure in form - possible?

  • Thread starter Thread starter D Simmonds
  • Start date Start date
D

D Simmonds

Hi All,

rather than going about this the hard way, writing an event procedure
test etc ...

In Access 2000 (for my sins!) is it possible to add user events to a
form, such that they can be raised within the form (using raiseevent
of course), and be handler in my calling class module?

I know how to write events, just not sure if Access allows user
defined events to be done in a screen form ...


Thanks in advance

Dave Simminds
 
Yes...you can do this. You wouldn't use Docmd.OpenForm...you'd have to
declare the form in your class with events and instantiate it there.
 
Paul,


thanks, ok i shall try it - yes appreciate that i'd have to decalre in
my class and instantiate there - was concerned with the visibility of
public items from a form - i.e. they aren't accessible if they are
variables ...


Thanks
Dave Simmonds
 
If the variables are public, you'll have access to them in the class. You
might also want to consider making property statements in the
form...depending on the nature of the variable and its purpose.
 
Paul Overway said:
If the variables are public, you'll have access to them in the class. You
might also want to consider making property statements in the
form...depending on the nature of the variable and its purpose.
 

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

Back
Top