473,396 Members | 1,864 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.

Table cells not empty?

22
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
Feb 6 '07 #1
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.
Feb 7 '07 #2
Phille
22
Expand|Select|Wrap|Line Numbers
  1. SELECT Cheval.Alias, Cheval.Cheval
  2. FROM Cheval
  3. WHERE (((Cheval.Cheval)=""));
Expand|Select|Wrap|Line Numbers
  1. Query1ChevalAlias
  2. N05/Attrape
  3. N05/Porta Marzia
  4. N06/Fleur en Fleur
  5. N06/Palmeira
  6. N06/Porta Marzia
  7. N06/Tashkiyla
Expand|Select|Wrap|Line Numbers
  1. ChevalChevalAlias
  2. N05/Maria de la Luz
  3. N07/Fablimixa
  4. N07/Mahima
  5. N07/Morning Rose
  6. N07/Tashkiyla
  7. N06/Bayourida
  8. N06/Flora Fennica
  9. N06/Maria de la Luz
  10. N06/Page Bleue
  11. N05/Attrape
  12. N05/Porta Marzia
  13. N06/Tashkiyla
  14. N06/Fleur en Fleur
  15. N06/Porta Marzia
  16. 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
Feb 7 '07 #3
Phille
22
Sorry about that, the table showed up fine when I was writing the post the post. What did go wrong?
Feb 7 '07 #4
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?
Feb 7 '07 #5
NeoPa
32,556 Expert Mod 16PB
Expand|Select|Wrap|Line Numbers
  1. SELECT Cheval.Alias, Cheval.Cheval
  2. FROM Cheval
  3. WHERE (((Cheval.Cheval)=""));
Expand|Select|Wrap|Line Numbers
  1. Query1ChevalAlias
  2. N05/Attrape
  3. N05/Porta Marzia
  4. N06/Fleur en Fleur
  5. N06/Palmeira
  6. N06/Porta Marzia
  7. N06/Tashkiyla
Expand|Select|Wrap|Line Numbers
  1. ChevalChevalAlias
  2. N05/Maria de la Luz
  3. N07/Fablimixa
  4. N07/Mahima
  5. N07/Morning Rose
  6. N07/Tashkiyla
  7. N06/Bayourida
  8. N06/Flora Fennica
  9. N06/Maria de la Luz
  10. N06/Page Bleue
  11. N05/Attrape
  12. N05/Porta Marzia
  13. N06/Tashkiyla
  14. N06/Fleur en Fleur
  15. 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
Expand|Select|Wrap|Line Numbers
  1. Table Name=tblStudent
  2. StudentID; Autonumber; PK
  3. Family; String; FK
  4. Name; String
  5. University; String; FK
  6. MaxMark; Numeric
  7. MinMark; Numeric
Feb 7 '07 #6
NeoPa
32,556 Expert Mod 16PB
Expand|Select|Wrap|Line Numbers
  1. SELECT Cheval.Alias, Cheval.Cheval
  2. FROM Cheval
  3. WHERE (((Cheval.Cheval)=""));
Try replacing this SQL with :
Expand|Select|Wrap|Line Numbers
  1. SELECT Alias,[Cheval]
  2. FROM Cheval
  3. WHERE IsNull([Cheval]);
Does this do what you want it to?
Feb 7 '07 #7
Phille
22
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?
Feb 10 '07 #8
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?
Feb 10 '07 #9
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 ;))
Feb 10 '07 #10
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 :
Expand|Select|Wrap|Line Numbers
  1. Cheval ChevalAlias
  2. N05    Maria de la Luz
  3. N07    Fablimixa
  4. N07    Mahima
  5. N07    Morning Rose
  6. N07    Tashkiyla
  7. N06    Bayourida
  8. N06    Flora Fennica
  9. N06    Maria de la Luz
  10. N06    Page Bleue
  11. N05    Attrape
  12. N05    Porta Marzia
  13. N06    Tashkiyla
  14. N06    Fleur en Fleur
  15. N06    Porta Marzia[[/b]    code]
  16. N06    PalmeiraActs and Deeds
  17. N92    AfkazaAdjala
  18. N83    AdjaridaArtillery Fire
  19. N94    AfkazaAsk for Rain
  20. N02    RequestingAube d'Irlande
  21. N96    AdjalaAviane
  22. N01    AvernaBayourida
  23. N95    BellaridaBee Charmer
  24. N02    BayouridaBella Ida
  25. N04    BayouridaFablimixa
  26. N92    FabliauFair Susanna
  27. N05    Flora FennicaFanny's Cove
  28. N79    Honeypot LaneFaster Sara
  29. N03    FablimixaFeather Bedding
  30. N05    Flowering StoneFire and Ice
  31. N04    Flowering StoneFlamma
  32. N02    Filoli GardensFlax Field
  33. N04    FablimixaFleur en Fleur
  34. N00    Flowering StoneFlora Linnea
  35. N04    Flora FennicaFriars Gate
  36. N06    FablimixaHerboriste
  37. N03    HelvellynKamisha
  38. N76    KareezMahima
  39. N02    MacellumMaria de la Luz
  40. N96    Light Of HopeMaya de la Luz
  41. N03    Maria de la LuzMoon Tree
  42. N01    MarsoumehMorning Rose
  43. N02    Morning QueenNannetta
  44. N98    NotturnaPage Bleue
  45. N87    Page BlanchePalmeira
  46. N00    PradaPorta Marzia
  47. N95    MemsahibPortland Stone
  48. N04    Porta MarziaSamsonella
  49. N05    Samata's GemSilvada
  50. N04    Samata's GemTashkiyla
  51. N00    TashtiyanaTest
  52. N07    Fleur en FleurThe Snowman
  53. N05    TashkiylaThessalonica
  54. N04    Tuneful NineTonalite
  55. N03    TimesTrois Rivieres
  56. N06    Tuneful NineTuneful Nine
  57. N98    Tidal TreasureTuning Mozart
  58. N03    Tuneful NineValley Orchard
  59. N00    Valley SpringsValley Springs
  60. N90    Orchid ValeVanora
  61. N06    Valley OrchardVictoria Page
  62. N02    Valley SpringsVittoria Vetra
  63. N04    Valley SpringsWicked Folly
  64. N87    Glencoe LightsWinds
  65. N02    Wicked Folly
Feb 10 '07 #11
Phille
22
Hmm

If I understand it, who are you kidding? Getting there - I think : )

Ok, so wheres the

Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT Alias,[Cheval]
  3. FROM Cheval
  4. 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.
Feb 10 '07 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

6
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...
3
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...
8
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...
1
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...
4
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...
0
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...
3
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...
5
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...
1
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; }
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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.