applyfilter in subform

  • Thread starter Thread starter alecarnero
  • Start date Start date
A

alecarnero

i have a form with a textbox named NOTAFISCAL and a a subform, with
details of the sales , is posible apply a filter in the subform , i want
only view only the rows related with the value NOTAFSICAL, how i can do
this, i have try with the filter propierty but any results, i have another
ideia please tell me , thanks

Alejandro Carnero
Santos-BRAZIL
 
alecarnero said:
i have a form with a textbox named NOTAFISCAL and a a subform, with
details of the sales , is posible apply a filter in the subform , i want
only view only the rows related with the value NOTAFSICAL, how i can do
this, i have try with the filter propierty but any results, i have another
ideia please tell me , thanks

Alejandro Carnero
Santos-BRAZIL

Alejanddro

Vai para Exibir Modo Design
Clicar no subformulário controle e achar a janela de propriedades.
Vai para tab 'Dados'
Vinicular campos filho digite NOTAFISCAL
Vinciular campos mestre digite NOTAFISCAL

Agora, o subformulário será ligado ao forumulário principal e mostrará
os dados no subformulário quando igual ao valor no NOTAFISCAL do
formulário principal.

Campo filho é o campo no subformulário que tem o valor igual à caixa de
texto no formulário principal
Campo Mestre é a caixa de texto NOTAFISCAL no formulário principal

Espero que ajude!

Jeff C
 
Thanks JEFF i have use this with success

Me.inter.Form.FilterOn = False
Me.inter.Form.Filter = "notafiscal = '" & Me.Notafiscal & "'"
Me.inter.Form.FilterOn = True
Me.inter.Requery
 

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

Back
Top