form filter with more than one parameter

I

iccsi

I would like to fiter my form using filter property.
It seems only work for one parameter.

My filter is like following:

EmployeeID = [forms]![frmEntry]![EmployeeID] and Start = [forms]!
[frmEntry]![EIS subform]![txtStartDate]

It works only I have first parameter, but not for 2 parameters.

Can you plase advise where I am wrong?

Your help is great appreciated,
 
K

KARL DEWEY

Try it like this --
(EmployeeID = [forms]![frmEntry]![EmployeeID]) AND (Start =
[forms]![frmEntry]![EIS subform]![txtStartDate])
 
I

inungh

Try it like this --
   (EmployeeID = [forms]![frmEntry]![EmployeeID]) AND (Start =  
[forms]![frmEntry]![EIS subform]![txtStartDate])

--
KARL DEWEY
Build a little - Test a little



iccsi said:
I would like to fiter my form using filter property.
It seems only work for one parameter.
My filter is like following:
EmployeeID = [forms]![frmEntry]![EmployeeID] and Start =  [forms]!
[frmEntry]![EIS subform]![txtStartDate]
It works only I have first parameter, but not for 2 parameters.
Can you plase advise where I am wrong?
Your help is great appreciated,- Hide quoted text -

- Show quoted text -

Thanks for helping,
Is it possible to have parameter optional?
For example, if EmployeeID dropdown is empty then the parameter is
null and the form gets all records.

Thanks again,
 
D

Douglas J. Steele

(EmployeeID = [forms]![frmEntry]![EmployeeID] OR
[forms]![frmEntry]![EmployeeID] IS NULL)
AND (Start => [forms]![frmEntry]![EIS subform]![txtStartDate] OR
[forms]![frmEntry]![EIS subform]![txtStartDate] IS NULL)

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


inungh said:
iccsi said:
I would like to fiter my form using filter property.
It seems only work for one parameter.
My filter is like following:
EmployeeID = [forms]![frmEntry]![EmployeeID] and Start = [forms]!
[frmEntry]![EIS subform]![txtStartDate]
It works only I have first parameter, but not for 2 parameters.
Can you plase advise where I am wrong?
Your help is great appreciated,- Hide quoted text -

- Show quoted text -

Thanks for helping,
Is it possible to have parameter optional?
For example, if EmployeeID dropdown is empty then the parameter is
null and the form gets all records.

Thanks again,
 

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