Hi
I have a table wich can posses empty fields, then I have a query that only show rows from the table when that specific field is blank (critweria ="" (also tried =Null)).
Ok! It works fine, untill the field gets a value (obviously) but when I empty the field again it dosen't reappear in the query.
Any ideas? Using XP with Access 2007 Trial
Thanks in advance
11 2424 NeoPa 32,556
Expert Mod 16PB
What is the SQL of your query?
I suspect you may be checking for an empty string then, when you clear it, setting it to Null.
"" =/= Null.
If you post your SQL we can suggest ways to make it work more reliably.
- SELECT Cheval.Alias, Cheval.Cheval
-
FROM Cheval
-
WHERE (((Cheval.Cheval)=""));
- Query1ChevalAlias
-
N05/Attrape
-
N05/Porta Marzia
-
N06/Fleur en Fleur
-
N06/Palmeira
-
N06/Porta Marzia
-
N06/Tashkiyla
- ChevalChevalAlias
-
N05/Maria de la Luz
-
N07/Fablimixa
-
N07/Mahima
-
N07/Morning Rose
-
N07/Tashkiyla
-
N06/Bayourida
-
N06/Flora Fennica
-
N06/Maria de la Luz
-
N06/Page Bleue
-
N05/Attrape
-
N05/Porta Marzia
-
N06/Tashkiyla
-
N06/Fleur en Fleur
-
N06/Porta Marzia
-
N06/PalmeiraActs and DeedsN92/AfkazaAdjalaN83/AdjaridaArtillery FireN94/AfkazaAsk for RainN02/RequestingAube d'IrlandeN96/AdjalaAvianeN01/AvernaBayouridaN95/BellaridaBee CharmerN02/BayouridaBella IdaN04/BayouridaFablimixaN92/FabliauFair SusannaN05/Flora FennicaFanny's CoveN79/Honeypot LaneFaster SaraN03/FablimixaFeather BeddingN05/Flowering StoneFire and IceN04/Flowering StoneFlammaN02/Filoli GardensFlax FieldN04/FablimixaFleur en FleurN00/Flowering StoneFlora LinneaN04/Flora FennicaFriars GateN06/FablimixaHerboristeN03/HelvellynKamishaN76/KareezMahimaN02/MacellumMaria de la LuzN96/Light Of HopeMaya de la LuzN03/Maria de la LuzMoon TreeN01/MarsoumehMorning RoseN02/Morning QueenNannettaN98/NotturnaPage BleueN87/Page BlanchePalmeiraN00/PradaPorta MarziaN95/MemsahibPortland StoneN04/Porta MarziaSamsonellaN05/Samata's GemSilvadaN04/Samata's GemTashkiylaN00/TashtiyanaTestN07/Fleur en FleurThe SnowmanN05/TashkiylaThessalonicaN04/Tuneful NineTonaliteN03/TimesTrois RivieresN06/Tuneful NineTuneful NineN98/Tidal TreasureTuning MozartN03/Tuneful NineValley OrchardN00/Valley SpringsValley SpringsN90/Orchid ValeVanoraN06/Valley OrchardVictoria PageN02/Valley SpringsVittoria VetraN04/Valley SpringsWicked FollyN87/Glencoe LightsWindsN02/Wicked Folly
As you can see the table has more empty fields than the query shows.
All the empty fields in the table that dosen't show in the query once had data in them which I afterwards have deleted. So is there some wierd memory that is ghosting around, or what is it?
Thanks
Sorry about that, the table showed up fine when I was writing the post the post. What did go wrong?
NeoPa 32,556
Expert Mod 16PB
I'm looking at it now.
I did a Preview Post & it's still a mess so I assume it looked fine in another application before pasting it in here?
NeoPa 32,556
Expert Mod 16PB - SELECT Cheval.Alias, Cheval.Cheval
-
FROM Cheval
-
WHERE (((Cheval.Cheval)=""));
- Query1ChevalAlias
-
N05/Attrape
-
N05/Porta Marzia
-
N06/Fleur en Fleur
-
N06/Palmeira
-
N06/Porta Marzia
-
N06/Tashkiyla
- ChevalChevalAlias
-
N05/Maria de la Luz
-
N07/Fablimixa
-
N07/Mahima
-
N07/Morning Rose
-
N07/Tashkiyla
-
N06/Bayourida
-
N06/Flora Fennica
-
N06/Maria de la Luz
-
N06/Page Bleue
-
N05/Attrape
-
N05/Porta Marzia
-
N06/Tashkiyla
-
N06/Fleur en Fleur
-
N06/Porta Marzia
N06/PalmeiraActs and DeedsN92/AfkazaAdjalaN83/AdjaridaArtillery FireN94/AfkazaAsk for RainN02/RequestingAube d'IrlandeN96/AdjalaAvianeN01/AvernaBayouridaN95/BellaridaBee CharmerN02/BayouridaBella IdaN04/BayouridaFablimixaN92/FabliauFair SusannaN05/Flora FennicaFanny's CoveN79/Honeypot LaneFaster SaraN03/FablimixaFeather BeddingN05/Flowering StoneFire and IceN04/Flowering StoneFlammaN02/Filoli GardensFlax FieldN04/FablimixaFleur en FleurN00/Flowering StoneFlora LinneaN04/Flora FennicaFriars GateN06/FablimixaHerboristeN03/HelvellynKamishaN76/KareezMahimaN02/MacellumMaria de la LuzN96/Light Of HopeMaya de la LuzN03/Maria de la LuzMoon TreeN01/MarsoumehMorning RoseN02/Morning QueenNannettaN98/NotturnaPage BleueN87/Page BlanchePalmeiraN00/PradaPorta MarziaN95/MemsahibPortland StoneN04/Porta MarziaSamsonellaN05/Samata's GemSilvadaN04/Samata's GemTashkiylaN00/TashtiyanaTestN07/Fleur en FleurThe SnowmanN05/TashkiylaThessalonicaN04/Tuneful NineTonaliteN03/TimesTrois RivieresN06/Tuneful NineTuneful NineN98/Tidal TreasureTuning MozartN03/Tuneful NineValley OrchardN00/Valley SpringsValley SpringsN90/Orchid ValeVanoraN06/Valley OrchardVictoria PageN02/Valley SpringsVittoria VetraN04/Valley SpringsWicked FollyN87/Glencoe LightsWindsN02/Wicked Folly
As you can see the table has more empty fields than the query shows.
All the empty fields in the table that dosen't show in the query once had data in them which I afterwards have deleted. So is there some wierd memory that is ghosting around, or what is it?
Thanks
Looking at this without any table MetaData, I have no idea what you're trying to illustrate :(
What does the long list at the end mean? Posting Table/Dataset MetaData - Table Name=tblStudent
-
StudentID; Autonumber; PK
-
Family; String; FK
-
Name; String
-
University; String; FK
-
MaxMark; Numeric
-
MinMark; Numeric
NeoPa 32,556
Expert Mod 16PB - SELECT Cheval.Alias, Cheval.Cheval
-
FROM Cheval
-
WHERE (((Cheval.Cheval)=""));
Try replacing this SQL with : - SELECT Alias,[Cheval]
-
FROM Cheval
-
WHERE IsNull([Cheval]);
Does this do what you want it to?
Hi again
Sorry for not giving a response erlier - my computer died on me.
Now I'm up and running again.
I'm looking at it now.
I did a Preview Post & it's still a mess so I assume it looked fine in another application before pasting it in here?
No it was pasted in the reply box. Try it yourself,copy a few columns from a table and paste them in, they look fine untill you submit it.
Anyways thanks for the help. But I'm getting really confused of how Access interprets the two commands, with criteria ="" I get those that have never had data in them, and with the isnull command I get those cells that are empty but has had a data in them???
Any idea of why?
NeoPa 32,556
Expert Mod 16PB
Anyways thanks for the help. But I'm getting really confused of how Access interprets the two commands, with criteria ="" I get those that have never had data in them, and with the isnull command I get those cells that are empty but has had a data in them???
Any idea of why?
Indeed.
Nulls can be the contents of all sorts of fields in Access (As long as they are allowed by the definition) and they mean the field has no data stored therein.
An empty string (""), however, is a valid string (Again as long as they are allowed by the definition) which the field contains. A Null can indicate an empty field of whatever type but "" is an empty string, much like a zero (0) is in a numeric field. Does this help?
NeoPa 32,556
Expert Mod 16PB
Hi again
Sorry for not giving a response erlier - my computer died on me.
Now I'm up and running again.
That's not a problem at all.
We respond to your posts, so if you don't post we get a mini-holiday (logically speaking ;))
NeoPa 32,556
Expert Mod 16PB
No it was pasted in the reply box. Try it yourself,copy a few columns from a table and paste them in, they look fine untill you submit it.
So this is how it should look then : - Cheval ChevalAlias
- N05 Maria de la Luz
- N07 Fablimixa
- N07 Mahima
- N07 Morning Rose
- N07 Tashkiyla
- N06 Bayourida
- N06 Flora Fennica
- N06 Maria de la Luz
- N06 Page Bleue
- N05 Attrape
- N05 Porta Marzia
- N06 Tashkiyla
- N06 Fleur en Fleur
- N06 Porta Marzia[[/b] code]
- N06 PalmeiraActs and Deeds
- N92 AfkazaAdjala
- N83 AdjaridaArtillery Fire
- N94 AfkazaAsk for Rain
- N02 RequestingAube d'Irlande
- N96 AdjalaAviane
- N01 AvernaBayourida
- N95 BellaridaBee Charmer
- N02 BayouridaBella Ida
- N04 BayouridaFablimixa
- N92 FabliauFair Susanna
- N05 Flora FennicaFanny's Cove
- N79 Honeypot LaneFaster Sara
- N03 FablimixaFeather Bedding
- N05 Flowering StoneFire and Ice
- N04 Flowering StoneFlamma
- N02 Filoli GardensFlax Field
- N04 FablimixaFleur en Fleur
- N00 Flowering StoneFlora Linnea
- N04 Flora FennicaFriars Gate
- N06 FablimixaHerboriste
- N03 HelvellynKamisha
- N76 KareezMahima
- N02 MacellumMaria de la Luz
- N96 Light Of HopeMaya de la Luz
- N03 Maria de la LuzMoon Tree
- N01 MarsoumehMorning Rose
- N02 Morning QueenNannetta
- N98 NotturnaPage Bleue
- N87 Page BlanchePalmeira
- N00 PradaPorta Marzia
- N95 MemsahibPortland Stone
- N04 Porta MarziaSamsonella
- N05 Samata's GemSilvada
- N04 Samata's GemTashkiyla
- N00 TashtiyanaTest
- N07 Fleur en FleurThe Snowman
- N05 TashkiylaThessalonica
- N04 Tuneful NineTonalite
- N03 TimesTrois Rivieres
- N06 Tuneful NineTuneful Nine
- N98 Tidal TreasureTuning Mozart
- N03 Tuneful NineValley Orchard
- N00 Valley SpringsValley Springs
- N90 Orchid ValeVanora
- N06 Valley OrchardVictoria Page
- N02 Valley SpringsVittoria Vetra
- N04 Valley SpringsWicked Folly
- N87 Glencoe LightsWinds
- N02 Wicked Folly
Hmm
If I understand it, who are you kidding? Getting there - I think : )
Ok, so wheres the -
-
SELECT Alias,[Cheval] -
FROM Cheval
-
WHERE HumanEyeIsNull([Cheval]);
Jokes aside. So you mean the only way to be sure to get all the data is by combining the ="" and IsNull? Sounds complicated.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Finn Newick |
last post by:
By defining a style as follows:
@media aural, handheld {td.layout {display:block;}}
I'm hoping to linearise layout tables when viewed by screenreaders and
handheld devices (it is also be in...
|
by: Jaz |
last post by:
Is there a reason why IE wont apply styles on table cells? Either I
shouldn't do this, I've got an error somewhere, or IE has a bug or
doesn't support it. (Opera and Moz render okay)
Since I've...
|
by: Jukka K. Korpela |
last post by:
I just noticed that most browsers render
<table border="1"><tr><td><p>foo</p></td></tr></table>
the same way as
<table border="1"><tr><td>foo</td></tr></table>
That is, they ignore the p...
|
by: Mark Carroll |
last post by:
I can't get my table cells to not have a gap between them in IE.
For example, with IE6SP1 I get a gap between the two red squares
on http://www.chiark.greenend.org.uk/~markc/test/test.html instead...
|
by: N. Demos |
last post by:
The following code renders as intended in IE (A TABLE, with cells of
fixed width and height, inside of a DIV with fixed width and height and
overflow set to hidden.) In Firefox, the table cells...
|
by: N. Demos |
last post by:
I have a single row table with fixed dimensioned cells nested inside a
fixed dimensioned div, which has overflow: hidden. The div's dimensions
are such that It should only display the first two...
|
by: N. Demos |
last post by:
I have a single row table with fixed dimensioned cells nested inside a
fixed dimensioned div, which has overflow: hidden. The div's dimensions
are such that It should only display the first two...
|
by: Richard Dixson |
last post by:
I created a new C# web application. Basically all I am trying to do is
create a table that consists of a few rows with two columns in each. And
then to set those columns to text values from my...
|
by: RobG |
last post by:
I'm trying to get table cells to clip content rather than wrapping.
It has been suggested to use:
td.clipped {
width: 5em;
overflow: hidden;
white-space: nowrap;
}
|
by: markszlazak |
last post by:
I'm a relatively slow response of table cells changing their
background color with mouseover/our in IE6 (Win 2K) but the response
is fine (fast) in Firefox. Why? The code is below. Sorry about the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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,...
| |