pass parameter in forms

M

mike

Hi ALL,

I just want to know how to pass a parameter from one form
to another form. What I mean is that, on one of the form
I created a list box. This list box contains the selected
records from table. When I double click on the selected
record in the list box, the selected record is pass onto
the other form. The other form should take the parameter
and displays the particular record base on the parameter.
How do I do this???

Thanks for the help...

mike
 
K

Ken Snell

Use the Filter argument of the DoCmd.OpenForm action:

DoCmd.OpenForm "SecondFormName", , , "[FieldName] = " & _
Me.ListBoxName.Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top