help referencing selections

A

Arnie

i have three forms on the first you select a command button (choice of 12)
that opens the second form which gives you a choice of A and B when you
select either it opens either form A or B which are the same design but
different data in them. On this third form i have 16 different command
buttons. what i require to do is when the third form opens it only shows the
corresponding command button that was selected on the first form.

1 First form select Button 5
2 Second form select A or B
3 Third form only show command button 5

i know how to make the buttons visible or not visible but not sure where to
put the code and how to refer back to my first selection.

many thanks in advance
 
R

RickW

I would use "OpenArgs". This is the last arguement in Docmd.Form.Open and is
similar to a global string variable which is recognised by the target form in
Me.OpenArgs
 
A

Arnie

Thanks appreciate help

RickW said:
I would use "OpenArgs". This is the last arguement in Docmd.Form.Open and is
similar to a global string variable which is recognised by the target form in
Me.OpenArgs
 
Top