View Full Version : getting form control value


sigmar
06-29-2001, 12:40 AM
I'm a newbie access programmer and I have a little problem. It must be easy

I have a form where the user must choose one option. Then that form closes and a new one is opened. How can I refer to the value of the first form's control from the second one????

I'm trying this:

Select * from table where table.name=[forms]![InitialForm]![Name]

Someone can help me???

Rich
06-29-2001, 01:25 AM
Easy answer is to leave the first form open just set its visible property to false when opening the second and close it when the second closes.
Forms!YourFormName.Visible = False
HTH

sigmar
06-29-2001, 01:38 AM
Thanks HTH!

I know I shouldn't ask things like this in a forum (it's too simple), but I have to create a database really quickly and I have no idea of Access.

sigmar