J
John
I placed a posting awhile back and recvd a response that
got me going (thanks Fred). But in doing so, I ran into
a further snag. So I am posting it again since the other
is back a bit. Needless to say I was a bit hasty in
saying it worked.
I have a form that has a combobox on it from which
clients can be selected from. The clients have client
codes assigned to them. All the forms are filterd based
on the client code. There are numerous forms requiring
numerous buttons (actually another form to hold them
all). Currently there is a macro to the buttons that
opens up the form and filters it with the following in
the macro WHERE line. It is [ClientCode]=Forms!
[usrfrmClientSelection]![ClientCode]. Now, the division
asking for this Access database is requesting a few more
forms to be added. The number of buttons is getting more
then it should be. I would like to offer a different
method of opening the forms.
I would like to use a combo on the Client Selection form
that lists out the form names for the user to select
from. Thanks to Fred I have in the click event of the
combo the following;
DoCmd. OpenForm comboboxname, acNormal,,[ClientCode]=
[Forms]![usrfrmClientSelection]![ClientCode].
There remainder is all default and so it isn't needed.
The form opens up but is not filtered. This is the
stumbling block I have encountered.
Any assistance is appreciated.
*** John
got me going (thanks Fred). But in doing so, I ran into
a further snag. So I am posting it again since the other
is back a bit. Needless to say I was a bit hasty in
saying it worked.
I have a form that has a combobox on it from which
clients can be selected from. The clients have client
codes assigned to them. All the forms are filterd based
on the client code. There are numerous forms requiring
numerous buttons (actually another form to hold them
all). Currently there is a macro to the buttons that
opens up the form and filters it with the following in
the macro WHERE line. It is [ClientCode]=Forms!
[usrfrmClientSelection]![ClientCode]. Now, the division
asking for this Access database is requesting a few more
forms to be added. The number of buttons is getting more
then it should be. I would like to offer a different
method of opening the forms.
I would like to use a combo on the Client Selection form
that lists out the form names for the user to select
from. Thanks to Fred I have in the click event of the
combo the following;
DoCmd. OpenForm comboboxname, acNormal,,[ClientCode]=
[Forms]![usrfrmClientSelection]![ClientCode].
There remainder is all default and so it isn't needed.
The form opens up but is not filtered. This is the
stumbling block I have encountered.
Any assistance is appreciated.
*** John