reference to controls

Linda31

Registered User.
Local time
Today, 06:11
Joined
Jun 12, 2003
Messages
12
Hi all

I have code that I want to be able to access from 2 different forms. I want to be able to put it in a module, there is a place on the form where it needs to reference a control and pass a value back to that control. Is there a way that in this function I could reference the current form,
for example as long as the controls were named the same,
could it be Forms!CurrentForm!controlname rather than Forms!Form1!controlname or Forms!Form2!controlname.

I hope this makes sense

Thanks
Linda
 
You could pass the control as an object to the function
 
Linda:

Are both forms open at the same time? If not, then you can have it selectively pass the information based on which form is open.

SHADOW
 

Users who are viewing this thread

Back
Top Bottom