Re: Dataset and the empty rows

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Shum" <shumyl21@xxxxxxxxx> wrote in message news:1177059602.509397.271270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i have a question.. I'm filling a dataset from a table in which some
rows are empty, i dont want those empty records to be filled in the
dataset.. Does any one know how to restrict it to only non empty
records..

I assume that you are filling the dataset from a table in a database. Therefore, you are sending a "Select..." statement to the database to get the records that you are inserting into the dataset. The best way to avoid certain records from being loaded is to specify a filter in the WHERE clause of your SELECT statement. I don't know what you mean by "empty" records, but if by "empty" you mean that all the fields are NULL, then your WHERE clause would be "Where NOT (field1 IS NULL AND field2 IS NULL AND field3 IS NULL... (repeat for all fields))".


.



Relevant Pages

  • Re: 3vl 2vl and NULL
    ... >>interpretation in the languages of the database. ... > Uncle Vernon be included or not? ... We don't know Uncle Vernon's age and we can only work with the ... >>> in the database is empty. ...
    (comp.databases.theory)
  • Re: 3vl 2vl and NULL
    ... >> properties that are represented by the values in my database. ... >>> If I look at my empty mug I can truthfully say ... >> that stores the amount of liquid in your mug. ... >thinking of the cell has holding an empty set would make sense, ...
    (comp.databases.theory)
  • Re: How to sort/update large excel db
    ... shouldn't have to worry about fields that are empty. ... But I think you should spend some time thinking about how your database should ... > all of 3 monthly updates. ...
    (microsoft.public.excel.misc)
  • Re: 3vl 2vl and NULL
    ... both Codd and Date got it ... > from some part or column of a relational database is quite different ... >>that there is an absence of any liquid in it - because it's empty. ... there is no value to store in the cell that is ...
    (comp.databases.theory)
  • Re: leading spaces
    ... Kevin, I checked the database and everything looks fine. ... message I'm getting from the empty address field. ... Microsoft VBScript runtime error '800a000d' ...
    (microsoft.public.frontpage.programming)