Passing and returning variables to a form.

  • Thread starter Thread starter Ward Horsfall
  • Start date Start date
W

Ward Horsfall

Hi,

This is probably a simple one which I have missed. In Access 2003 how can I
pass a variable to a form and return a value from a form?

I don't want to have to declare everything as public every time. Is there a
simple way. Also can I specifiy if it is by reference or by value?

Thanks,

Ward
 
From where do you want to pass the value, do you want to pass it to a form
you are opening or one that is already open (you can't do anything with a
closed form)?

Larry Linson
Microsoft Access MVP
 
Use event properties. By reference takes the "real" data
by value makes a copy of the data.
 
Back
Top