473,396 Members | 1,997 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,396 software developers and data experts.

Question on Query criteria

Hi,

OK, I admit it from the outset, this may seem like a really silly
question but an explanation is stumping me.

The file I have been modifying runs a query when the main form & subform
open. Anyway, the query populates ten fields from the main table when
the subform opens. The first columns "Criteria" line has the following,

Like "*" & [Forms]![NCF List]![BroardSearch] & "*" And <>"0"

with <>"0" repeated on each of the subsequent 9 "or" lines in the first
column. The Like statement is repeated for each of the subsequent
fields and columns as you go along and down.

So, here's the question -- What's the <>"0" mean? Is this the same as
saying "is not null". If I leave this in, the subform often tells me
the expression is too complex to be evaluated. If it is taken out, all
seems to work OK. This is the same form/subform I carried over from the
original file and it was working without any problems in the old file.
The only difference is I've split the new database as the old one was
taking too long to open on the network.

Thanx in advance,

Stinky Pete ;-)

Feb 13 '07 #1
3 1726
Stinky Pete wrote:
Hi,

OK, I admit it from the outset, this may seem like a really silly
question but an explanation is stumping me.

The file I have been modifying runs a query when the main form & subform
open. Anyway, the query populates ten fields from the main table when
the subform opens. The first columns "Criteria" line has the following,

Like "*" & [Forms]![NCF List]![BroardSearch] & "*" And <>"0"

with <>"0" repeated on each of the subsequent 9 "or" lines in the first
column. The Like statement is repeated for each of the subsequent
fields and columns as you go along and down.
So, here's the question -- What's the <>"0" mean? Is this the same as
saying "is not null". If I leave this in, the subform often tells me
the expression is too complex to be evaluated. If it is taken out, all
seems to work OK. This is the same form/subform I carried over from the
original file and it was working without any problems in the old file.
The only difference is I've split the new database as the old one was
taking too long to open on the network.

Thanx in advance,

Stinky Pete ;-)
It looks incorrect. The <"0" isn't being compared to anything. It
might make sense if it were
Like "*" & [Forms]![NCF List]![BroardSearch] & "*" And _
[Forms]![NCF List]![BroardSearch]<>"0"
Feb 13 '07 #2
On Feb 14, 1:00 am, salad <o...@vinegar.comwrote:
Stinky Pete wrote:
Hi,
OK, I admit it from the outset, this may seem like a really silly
question but an explanation is stumping me.
The file I have been modifying runs a query when the main form & subform
open. Anyway, the query populates ten fields from the main table when
the subform opens. The first columns "Criteria" line has the following,
Like "*" & [Forms]![NCF List]![BroardSearch] & "*" And <>"0"
with <>"0" repeated on each of the subsequent 9 "or" lines in the first
column. The Like statement is repeated for each of the subsequent
fields and columns as you go along and down.
So, here's the question -- What's the <>"0" mean? Is this the same as
saying "is not null". If I leave this in, the subform often tells me
the expression is too complex to be evaluated. If it is taken out, all
seems to work OK. This is the same form/subform I carried over from the
original file and it was working without any problems in the old file.
The only difference is I've split the new database as the old one was
taking too long to open on the network.
Thanx in advance,
Stinky Pete ;-)

It looks incorrect. The <"0" isn't being compared to anything. It
might make sense if it were
Like "*" & [Forms]![NCF List]![BroardSearch] & "*" And _
[Forms]![NCF List]![BroardSearch]<>"0" - Hide quoted text -

- Show quoted text -
Thanx for the update and comment. I'll give it a whirl to see what
happens after pasting the new bit into the query. Could anyone still
give me a heads up as to what the <>"0" bit is supposed to be doing?

Stinky Pete ;-)

Feb 13 '07 #3
Stinky Pete wrote:
On Feb 14, 1:00 am, salad <o...@vinegar.comwrote:
>>Stinky Pete wrote:
>>>Hi,
>>>OK, I admit it from the outset, this may seem like a really silly
question but an explanation is stumping me.
>>>The file I have been modifying runs a query when the main form & subform
open. Anyway, the query populates ten fields from the main table when
the subform opens. The first columns "Criteria" line has the following,
>>>Like "*" & [Forms]![NCF List]![BroardSearch] & "*" And <>"0"
>>>with <>"0" repeated on each of the subsequent 9 "or" lines in the first
column. The Like statement is repeated for each of the subsequent
fields and columns as you go along and down.
So, here's the question -- What's the <>"0" mean? Is this the same as
saying "is not null". If I leave this in, the subform often tells me
the expression is too complex to be evaluated. If it is taken out, all
seems to work OK. This is the same form/subform I carried over from the
original file and it was working without any problems in the old file.
The only difference is I've split the new database as the old one was
taking too long to open on the network.
>>>Thanx in advance,
>>>Stinky Pete ;-)

It looks incorrect. The <"0" isn't being compared to anything. It
might make sense if it were
Like "*" & [Forms]![NCF List]![BroardSearch] & "*" And _
[Forms]![NCF List]![BroardSearch]<>"0" - Hide quoted text -

- Show quoted text -


Thanx for the update and comment. I'll give it a whirl to see what
happens after pasting the new bit into the query. Could anyone still
give me a heads up as to what the <>"0" bit is supposed to be doing?

Stinky Pete ;-)
It's asking for searches of [BroardSearch] but don't look at those that
aren't 0. The original coder did it wrong.

You can keep it in or not. Btw, what is a Broard?
Feb 14 '07 #4

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

Similar topics

1
by: Daniel Chartier | last post by:
Hello. I have a question concerning variable criteria for queries and reading forms. Let's say that I have a table with 2 fields and 10 records. One of the fields can have two different...
2
by: Ellen Manning | last post by:
Using A2K. In my table I have the field "Grant" which can have a value or be null. I have a query that counts the number of records and has a Where clause on the Grant field. The query won't...
4
by: Lauren Quantrell | last post by:
In my old MDB databases, I constructed a lot of "subQueries" to filter out records, then based a new query on the subQuery. This results in huge speed increases on large datasets. However... In...
3
by: thomas goodwin | last post by:
I have a query which asks for a parameter value to execute it. To see the results I have to: a) click on the query -- the "Enter Parameter Value" window pops up. b) enter the parameter value c)...
5
by: Bob | last post by:
Hi Everybody Difficult question Has anyone else used the "Using the Tab control as a container" database example that comes with the above book chapter 7 on the accompanying disc. It is a...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
3
by: splashout1 | last post by:
I am trying to set up a search facility by giving the user a form for them to enter a variety of criteria. They will either know the exact criteria they are looking for or will not. Therefore i...
1
by: John Feeley | last post by:
am tring to add a number of years to a dob. im doing this by adding my date+years*365.26 I get a string of numbers. I then convert the number in the next column to actual date again. I'm getting...
5
n8kindt
by: n8kindt | last post by:
this is a very basic question but i might be making it more complicated than it should be. if i were to have a query with the following code SELECT Tbl1.ID, Tbl1., Tbl1. FROM Tbl1 WHERE...
3
by: bob laughland | last post by:
Hi All, I have another SQL question, and this one is going to be difficult to explain. I have a table like this rowid name changed 1 a 1 1 ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.