Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Custom Procedure to an event

Status
Not open for further replies.

RizMan

Programmer
Jun 13, 2003
20
FR
First of all Hello. This is my first post here on these forums.

Now to my question:
I am dynamically generating reports.
I start by creating a new report using

set rep = CreateReport

Now I want to set as e.g. the OnPage event to my Costum Procedure "LayoutControls"

In VB6 I know that you can do it this way:
object.OnEvent = GetRef("YourProcedure")

However, VBA doesn't seem to know the GetRef function.
Does anyone know how to do it?
I am using AccessXP
 
me.controlname.oneventname = whatever you want it to do.

eg. text box named data, event lose focus

me.data.onfocus = [somedumbmacrofilename].[macrolinename]

Randall Vollen
National City Bank Corp.
 
that's "on focus" but you get the point..

Randall Vollen
National City Bank Corp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top