Query criteria >50 doesn't work if passed from form..;( 
Author Message
 Query criteria >50 doesn't work if passed from form..;(

hello all,
i have a search form company_search with many controls. A query reads
these
controls to use as its criteria(s).

-by the usage of statemts such as:

Like nz([Forms]![company_search]![CompNameEng])

in the query criteria. then the user can type co* and get all the
companies
starting with co, etc.

but when I try to do this with number based fields (for example
compValue),
the user can't type >50 and get all the companies with value greater
than
50....
after all, the Access criteria line accepts >50 in the criteria, so why
not ccept this value passed from a control on a form..?  the query just
diaplays no records.

isn't there a simple way to do this from within the query criteria
without resorting to VBA string processing (which might slow down the
query, as I have 20 different criteria fields on
a single query)

?

thanks for all the help..

Oded

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Fri, 29 Mar 2002 03:00:00 GMT  
 Query criteria >50 doesn't work if passed from form..;(
hello all,
i have a search form company_search with many controls. A query reads
these
controls to use as its criteria(s).

-by the usage of statemts such as:

Like nz([Forms]![company_search]![CompNameEng])

in the query criteria. then the user can type co* and get all the
companies
starting with co, etc.

but when I try to do this with number based fields (for example
compValue),
the user can't type >50 and get all the companies with value greater
than
50....
after all, the Access criteria line accepts >50 in the criteria, so why
not ccept this value passed from a control on a form..?  the query just
diaplays no records.

isn't there a simple way to do this from within the query criteria
without resorting to VBA string processing (which might slow down the
query, as I have 20 different criteria fields on
a single query)

?

thanks for all the help..

Oded

Sent via Deja.com http://www.deja.com/
Before you buy.



Fri, 29 Mar 2002 03:00:00 GMT  
 Query criteria >50 doesn't work if passed from form..;(
have you tried adding your own SQL statements to the query to get what you
want?


Sat, 30 Mar 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VB Doesn't compile 50% of the time

2. Passing a Parameter its works and it doesn't work

3. SQL query works, Crystal query doesn't

4. VB4 programs don't work in NT3.50

5. Access 97, form that passes Tbl record value to a Criteria of a Query

6. 50 cent bring em in | 50 cent brings out jim jones | 50 cent broke

7. passing by references doesn't work

8. Passing binary data as a (unicode) string to API is converted and doesn't work

9. fRefreshLinks Doesn't work if path doesn't exist

10. Why doesn't this query work?

11. select query doesn't always work

12. Query using SQL doesn't work

 

 
Powered by phpBB® Forum Software