tags:

views:

45

answers:

1

I have form with 1 button. when you click on the button 3 others appear which relate to product colours red green or blue.

At the moment when you click on a colour button it opens a form just for that colour product.

Is it possible to have just one colour form that opens when any colour button is clicked but will filter the parts related to the colour.

+2  A: 

The arguments for the OpenForm method of DoCmd include Where, so you can have something like:

 DoCmd.OpenForm "FormNameHere",,,"Colour='" & Me.txtBoxWithColourName & "'"
Remou
but is this a VB6 frontend or an Access frontend?
hawbsl
There is a great deal of confusion about VBA and VB6, I strongly suspect VBA. In fact, I am almost certain, given the poster.
Remou