473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Filter in form not working?

I have a form based on the query:

SELECT tblCreditGeld.CG_Selected, tblCreditGeld.CG_ClientSelected,
tblCreditGeld.CG_ComplexSelected, tblCreditGeld.CG_OKGR_ID,
tblCreditGeld.CG_OKGR_IDN, tblCreditGeld.CG_client_n,
tblCreditGeld.CG_COMP_NR, tblCreditGeld.CG_BANKREK_NR,
tblCreditGeld.CG_clientnm, tblCreditGeld.CG_K_MUNT_ISO,
tblCreditGeld.CG_GRV, tblCreditGeld.CG_kcons, tblCreditGeld.CG_unit,
tblCreditGeld.CG_Kode, tblCreditGeld.CG_Perc1,
tblCreditGeld.CG_MPerc1, tblCreditGeld.CG_Grens,
tblCreditGeld.CG_Perc2, tblCreditGeld.CG_MPerc2,
tblCreditGeld.CG_BGrens, tblCreditGeld.CG_CREDITRENTE_4,
tblCreditGeld.CG_EFF_PERC_CR_4, tblCreditGeld.CG_verrt,
tblCreditGeld.CG_CREDITRENTE_TOT, tblCreditGeld.CG_EFF_PERC_CR_TOT,
tblCreditGeld.CG_vertot, tblCreditGeld.CG_CREDITRENTE_4_C,
tblCreditGeld.CG_EFF_PERC_CR_4_C, tblCreditGeld.CG_CREDITRENTE_TOT_C,
tblCreditGeld.CG_EFF_PERC_CR_TOT_C, tblCreditGeld.CG_NAAM,
tblCreditGeld.CG_kadv, tblCreditGeld.CG_mar, tblCreditGeld.CG_martot,
tblCreditGeld.CG_kmar, tblCreditGeld.CG_kmartot,
tblCreditGeld.CG_5TON, tblCreditGeld.CG_PORTO,
tblCreditGeld.CG_Freq_Dagafschr
FROM tblCreditGeld;

The form has a filter:
((CG_OKGR_IDN) = 'A. LEUSCHEL BEHEER B.V.')
The filterproperty is set to 'True' but the filter simply does not
work. If I put this filter in de SQL as a WHERE statement it
works...............
I have tried setting the filter through a module in VBA, in the form
itself, in design mode, in normal mode, even manually but the form
just refuses to filter anything.
There is in de code nothing to find that would set the filter
otherwise, in none of the events of the form nor in any events
connected to any of the controls.................
Any suggestions as to why this form refuses to filter?
I tried compacting and repairing the database as well as importing the
whole shebang in a new database but no
resolve.......................... Only remorse.............

Thanks a lot for thinking with me, this problem is somewhat shadowing
the happiness I feel at the birth of my youngest brothers first child
(a beautiful beautiful girl that undoubtedly will be the first female
president of the United States of Europe :p) yesterday....
For those who want to share in my happiness: she is born 7th of march
@ 14:45 GMT +1!!!

Greetings, Happy Henro

Mar 8 '07 #1
3 6714
On 7 Mar 2007 23:48:25 -0800, "Henrootje" <He****@gmail.comwrote:

Perhaps you could remove all parentheses and try again.

Another test: run the form without filter, then select the field,
right click, filter by selection. Then in the immediate window enter:
?Forms!<yourform>.Filter
and see what it produced.

-Tom.

>I have a form based on the query:

SELECT tblCreditGeld.CG_Selected, tblCreditGeld.CG_ClientSelected,
tblCreditGeld.CG_ComplexSelected, tblCreditGeld.CG_OKGR_ID,
tblCreditGeld.CG_OKGR_IDN, tblCreditGeld.CG_client_n,
tblCreditGeld.CG_COMP_NR, tblCreditGeld.CG_BANKREK_NR,
tblCreditGeld.CG_clientnm, tblCreditGeld.CG_K_MUNT_ISO,
tblCreditGeld.CG_GRV, tblCreditGeld.CG_kcons, tblCreditGeld.CG_unit,
tblCreditGeld.CG_Kode, tblCreditGeld.CG_Perc1,
tblCreditGeld.CG_MPerc1, tblCreditGeld.CG_Grens,
tblCreditGeld.CG_Perc2, tblCreditGeld.CG_MPerc2,
tblCreditGeld.CG_BGrens, tblCreditGeld.CG_CREDITRENTE_4,
tblCreditGeld.CG_EFF_PERC_CR_4, tblCreditGeld.CG_verrt,
tblCreditGeld.CG_CREDITRENTE_TOT, tblCreditGeld.CG_EFF_PERC_CR_TOT,
tblCreditGeld.CG_vertot, tblCreditGeld.CG_CREDITRENTE_4_C,
tblCreditGeld.CG_EFF_PERC_CR_4_C, tblCreditGeld.CG_CREDITRENTE_TOT_C,
tblCreditGeld.CG_EFF_PERC_CR_TOT_C, tblCreditGeld.CG_NAAM,
tblCreditGeld.CG_kadv, tblCreditGeld.CG_mar, tblCreditGeld.CG_martot,
tblCreditGeld.CG_kmar, tblCreditGeld.CG_kmartot,
tblCreditGeld.CG_5TON, tblCreditGeld.CG_PORTO,
tblCreditGeld.CG_Freq_Dagafschr
FROM tblCreditGeld;

The form has a filter:
((CG_OKGR_IDN) = 'A. LEUSCHEL BEHEER B.V.')
The filterproperty is set to 'True' but the filter simply does not
work. If I put this filter in de SQL as a WHERE statement it
works...............
I have tried setting the filter through a module in VBA, in the form
itself, in design mode, in normal mode, even manually but the form
just refuses to filter anything.
There is in de code nothing to find that would set the filter
otherwise, in none of the events of the form nor in any events
connected to any of the controls.................
Any suggestions as to why this form refuses to filter?
I tried compacting and repairing the database as well as importing the
whole shebang in a new database but no
resolve.......................... Only remorse.............

Thanks a lot for thinking with me, this problem is somewhat shadowing
the happiness I feel at the birth of my youngest brothers first child
(a beautiful beautiful girl that undoubtedly will be the first female
president of the United States of Europe :p) yesterday....
For those who want to share in my happiness: she is born 7th of march
@ 14:45 GMT +1!!!

Greetings, Happy Henro
Mar 8 '07 #2
"Henrootje" <He****@gmail.comwrote in
news:11**********************@8g2000cwh.googlegrou ps.com:
I have a form based on the query:
The form has a filter:
((CG_OKGR_IDN) = 'A. LEUSCHEL BEHEER B.V.')
The filterproperty is set to 'True' but the filter simply does
not work. If I put this filter in de SQL as a WHERE statement
it works...............
I have tried setting the filter through a module in VBA, in
the form itself, in design mode, in normal mode, even manually
but the form just refuses to filter anything.
There is in de code nothing to find that would set the filter
otherwise, in none of the events of the form nor in any events
connected to any of the controls.................
Any suggestions as to why this form refuses to filter?
I tried compacting and repairing the database as well as
importing the whole shebang in a new database but no
resolve.......................... Only remorse.............
Forms also have a property: .FilterOn This must be set True for
the filter to work. You have not mentioned setting this
property. Were you aware of it and what happens if you do set
it?

The .Filter Property should contain an expression which
evaluates the records to include when the filter is on.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Mar 8 '07 #3
It turned out to be a stupid misspelling in some unused variable being
called somewhere I completely had forgotten.......
Thus filling the filter of the form with "" AND setting the filterOn
property to true :s
Nice sloppy coding :s

Sorry to bother you but thanks for thinking with me!

On 8 mrt, 23:16, Bob Quintal <rquin...@sPAmpatico.cawrote:
"Henrootje" <Hen...@gmail.comwrote innews:11**********************@8g2000cwh.googlegr oups.com:


I have a form based on the query:
The form has a filter:
((CG_OKGR_IDN) = 'A. LEUSCHEL BEHEER B.V.')
The filterproperty is set to 'True' but the filter simply does
not work. If I put this filter in de SQL as a WHERE statement
it works...............
I have tried setting the filter through a module in VBA, in
the form itself, in design mode, in normal mode, even manually
but the form just refuses to filter anything.
There is in de code nothing to find that would set the filter
otherwise, in none of the events of the form nor in any events
connected to any of the controls.................
Any suggestions as to why this form refuses to filter?
I tried compacting and repairing the database as well as
importing the whole shebang in a new database but no
resolve.......................... Only remorse.............

Forms also have a property: .FilterOn This must be set True for
the filter to work. You have not mentioned setting this
property. Were you aware of it and what happens if you do set
it?

The .Filter Property should contain an expression which
evaluates the records to include when the filter is on.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account fromhttp://www.teranews.com- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -

Mar 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard | last post by:
Hi, I have a form based on a table. When I filter the form I want to run a report based on the same table with the same filter as the form. No problem until I want to filter a combo box where...
7
by: damjanu | last post by:
Hi All; I need little help. I have a datasheet form. I allow user to do 'filter by selection'. My form contains a column with values. As user changes selections, I want to calculate totals....
4
by: Nhmiller | last post by:
This is directly from Access' Help: "About designing a query When you open a query in Design view, or open a form, report, or datasheet and show the Advanced Filter/Sort window (Advanced...
0
by: Simon | last post by:
Dear reader, Under Tools>>Options>>Tables/Queries there is a setting possible of "SQL Server Compatible Syntax (ANSI 92)". The two tick boxes here are · "This database" · ...
5
by: Ron S | last post by:
After days of searching I finally an example that would work with my application, the only problem is after entering all of the code it is not working. Would someone be kind enough to take a look at...
9
by: dee | last post by:
I'd like to filter by the following criteria: left(LeadDisposition,3) = "Sit" AND Appt_Date = Text767 I have no idea how to do this. Appreciate help.
3
by: angi35 | last post by:
Working in Access 2000... I have a form with records for every employee. I'd like to create two command buttons so a user can filter the form for either 'only current' or 'only former' employees. I...
5
by: Jim Mandala | last post by:
Using Access 2003 front end; SQL Server 2005 Back end: I have a complex form that has lots of data fields including about thirty or so checkboxes storing Yes/No data that I would like my users...
9
GazMathias
by: GazMathias | last post by:
Hi Guys, Acc2003. I have a form that is misbehaving by suddenly refusing to apply a filter I am passing to it. In a nutshell, I use a public variable to control the form's behaviour called...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.