Parameter from Combo box

  • Thread starter Dimitris Nikolakakis
  • Start date
D

Dimitris Nikolakakis

I have a form (FactoriesOrders )with a ComboBox and a subform (FOrders) that
show the results of an SP.

The SP has a parameter and I have connected the parameter with the ComboBox
@parameter nvarchar(15) = Forms!FactoriesOrders.ComboBox

How can I refresh tha data of subform each time I change value to ComboBox?

Thanks
 
N

Nikos Yannacopoulos

Dimitri,

Try this line of code:

Me.FOrders.Requery

in the combo's On Change event.

HTH,
Nikos
 
V

Vadim Rapp

Hello Dimitris,
You wrote in conference microsoft.public.access.adp.sqlserver on Wed, 19
Jul 2006 12:11:08 +0300:

DN> I have a form (FactoriesOrders )with a ComboBox and a subform (FOrders)
DN> that show the results of an SP.

DN> The SP has a parameter and I have connected the parameter with the
DN> ComboBox @parameter nvarchar(15) = Forms!FactoriesOrders.ComboBox

DN> How can I refresh tha data of subform each time I change value to
DN> ComboBox?

Name your combobox Parameter (i.e. same as parameter of your s.p. less @)


Vadim Rapp
 

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