Forums
This topic is locked
Hiding empty fields within a recordset?
Posted 01 Mar 2003 19:20:58
1
has voted
01 Mar 2003 19:20:58 jack nimble posted:
Is there a way I can hide a dynamic-data region within a recordset if no information is in that field? I know that I can hide a region if the entire recordset is empty. I want to show the recordset data only if a specific region has data in the table field.Thanks.
Replies
Replied 01 Mar 2003 22:52:09
01 Mar 2003 22:52:09 asp asp replied:
filter your RS with this.
SELECT your_tbl
FROM dbo.yourDB
WHERE your_tbl IS NOT NULL
SELECT your_tbl
FROM dbo.yourDB
WHERE your_tbl IS NOT NULL
Replied 02 Mar 2003 02:24:26
02 Mar 2003 02:24:26 jack nimble replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
filter your RS with this.
SELECT your_tbl
FROM dbo.yourDB
WHERE your_tbl IS NOT NULL
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Does the SQL statement above resemble the following rule:
Show Region IF Recordset Field is NOT Empty
filter your RS with this.
SELECT your_tbl
FROM dbo.yourDB
WHERE your_tbl IS NOT NULL
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Does the SQL statement above resemble the following rule:
Show Region IF Recordset Field is NOT Empty
Replied 02 Mar 2003 06:54:50
02 Mar 2003 06:54:50 asp asp replied:
yes
Replied 02 Mar 2003 17:43:25
02 Mar 2003 17:43:25 jack nimble replied:
That SQL statement appears to be table specific and not field specific. Correct me if I'm getting something wrong.
Replied 02 Mar 2003 18:04:56
02 Mar 2003 18:04:56 jack nimble replied:
I tried the following statement:
SELECT your_tbl
FROM dbo.yourDB
WHERE your_tbl IS NOT NULL
All records appeared as though there was no filter. I think all my records are not "null" but blank or empty. Is there an alternative statement I can use as apposed to "null"? Something like ""?
SELECT your_tbl
FROM dbo.yourDB
WHERE your_tbl IS NOT NULL
All records appeared as though there was no filter. I think all my records are not "null" but blank or empty. Is there an alternative statement I can use as apposed to "null"? Something like ""?
Replied 02 Mar 2003 19:03:44
02 Mar 2003 19:03:44 asp asp replied:
if your fields are not NULL then they are blank in that case use this,
SELECT *
FROM yourTable
WHERE yourColumn = ''
SELECT *
FROM yourTable
WHERE yourColumn = ''
Replied 02 Mar 2003 19:08:49
02 Mar 2003 19:08:49 jack nimble replied:
That statement seems to filter out all the records I want to keep and show the records that have empty/blank values in the specified field. Is there a way to reverse that statement to filter out the records that have blank values in specific fields?
Thanks asp
Edited by - jackbnimble on 02 Mar 2003 19:09:53
Thanks asp
Edited by - jackbnimble on 02 Mar 2003 19:09:53
Replied 02 Mar 2003 20:05:26
02 Mar 2003 20:05:26 asp asp replied:
you wana hide null fields right? try the <> this will hide all fields with noting.
SELECT *
FROM yourTable
WHERE yourColumn <> ''
SELECT *
FROM yourTable
WHERE yourColumn <> ''
Replied 02 Mar 2003 20:11:35
02 Mar 2003 20:11:35 jack nimble replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
you wana hide null fields right? try the <> this will hide all fields with noting.
SELECT *
FROM yourTable
WHERE yourColumn <> ''
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks asp, you're boss
That statement successfully my requirement; in other words, it did the trick.
you wana hide null fields right? try the <> this will hide all fields with noting.
SELECT *
FROM yourTable
WHERE yourColumn <> ''
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks asp, you're boss
That statement successfully my requirement; in other words, it did the trick.