473,406 Members | 2,847 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,406 software developers and data experts.

is a record empty, then .......


hi,

i'm trying to determine if a record is empty
and when it's not, it has to show that record

to test, I put three X's in the code

the content of rs("opmerking") isn't shown
but the three X's are there

Does someone know why ?
Here is my code:

<%
While not rs.EOF
If not rs.EOF then
%>
<tr>
<td><% If Not Len(rs("opmerking")) = 0 Then %>
<br><%=rs("uitgevoerd")%>XXX
<% End If %></td>
</tr>
<%
rs.MoveNext
End If
Wend
%>

I've all ready tried this:

<% If Not Len(rs("opmerking")) = "0" Then %>

without any result

and I've all ready tried this:

<% If not(isNull(rs("opmerking"))) Then %>
<br><%=rs("opmerking")%>XXX
<% End If %>

the three X's are there
but the content of rs("opmerking") isn't there

who can help me?

thanks
Leentje
Jun 17 '07 #1
3 2817
Leentje® wrote on 17 jun 2007 in microsoft.public.inetserver.asp.general:
i'm trying to determine if a record is empty
and when it's not, it has to show that record
<% If Not Len(rs("opmerking")) = 0 Then %>
Good idea, why not try:

<% If Len("" & rs("opmerking")) 0 Then %>

<% If Not Len(rs("opmerking")) = "0" Then %>
The above is illogical, since len() should return a number.
<% If not(isNull(rs("opmerking"))) Then %>
You were asking for empty, noot for a null value.

Empty of a string field value would be "" or Null.

Are you sure the field is a string?

Do you allow null values of that field?

What database engine?

We need meer informatie, Leentje, to learn Lotje to walk.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 17 '07 #2

thanks
don't ask me how
but it works now

"Evertjan." <ex**************@interxnl.netschreef in bericht
news:Xn********************@194.109.133.242...
Leentje® wrote on 17 jun 2007 in microsoft.public.inetserver.asp.general:
>i'm trying to determine if a record is empty
and when it's not, it has to show that record
><% If Not Len(rs("opmerking")) = 0 Then %>

Good idea, why not try:

<% If Len("" & rs("opmerking")) 0 Then %>

><% If Not Len(rs("opmerking")) = "0" Then %>

The above is illogical, since len() should return a number.
><% If not(isNull(rs("opmerking"))) Then %>

You were asking for empty, noot for a null value.

Empty of a string field value would be "" or Null.

Are you sure the field is a string?

Do you allow null values of that field?

What database engine?

We need meer informatie, Leentje, to learn Lotje to walk.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 17 '07 #3
Leentje® wrote on 17 jun 2007 in
microsoft.public.inetserver.asp.general:
"Evertjan." <ex**************@interxnl.netschreef in bericht
news:Xn********************@194.109.133.242...
>Leentje® wrote on 17 jun 2007 in
microsoft.public.inetserver.asp.general:
>>i'm trying to determine if a record is empty
and when it's not, it has to show that record
>><% If Not Len(rs("opmerking")) = 0 Then %>

Good idea, why not try:

<% If Len("" & rs("opmerking")) 0 Then %>

>><% If Not Len(rs("opmerking")) = "0" Then %>

The above is illogical, since len() should return a number.
>><% If not(isNull(rs("opmerking"))) Then %>

You were asking for empty, noot for a null value.

Empty of a string field value would be "" or Null.

Are you sure the field is a string?

Do you allow null values of that field?

What database engine?

We need meer informatie, Leentje, to learn Lotje to walk.
[Please do not toppost on usenet, corrected]
thanks
don't ask me how
but it works now
As this is a forum and not a helpdesk,
it would be nice and polite to have
1 my above questions answered
and
2 to know what solution you chose.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 18 '07 #4

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

Similar topics

17
by: Rick | last post by:
Hi all, Is there a MySQL function to get the first record through a query? I would like to open a page of client records with the first one shown. The other records can be accessed from a...
9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
30
by: S. van Beek | last post by:
Dear reader A record set can be empty because the condition in the query delivers no records. Is there a VBA code to check the status of a record set, record set empty
5
by: HS1 | last post by:
Hello I have Win application used to add records into a table (called Clients) in an Access database. I use a DataGrid1 to present records in this table and use some TextBox(es) to display...
6
by: Matt | last post by:
I'm not entirely sure how to describe this issue. I have a number of ComboBoxes in my application which have their text properties bound to a field in a data set. The items loaded in the ComboBox...
0
by: sara | last post by:
I have a simple app, and I'm trying to add Orders. I have tblOrders and tblOrderDetails. First, the user selects the customer, then "orders", "new Order" The frmNewOrder simply assures the...
8
by: lmurgas | last post by:
FormA = List of organization records bound to table FormB = Tabbed form with details of organization and all other related entities, such as orders, contacts, invoices, (all as subforms bound to...
7
by: Neil | last post by:
Was working in A2003 and noticed that the Save Record item on the Records menu was not available when the record was not dirty. In A2000, Save Record was always available. (This is a problem for me...
6
jinalpatel
by: jinalpatel | last post by:
I am using following code for searching records. 'Purpose: Build up the criteria string form the non-blank search boxes, and apply to the form's Filter. 'Notes: 1. We tack " AND " on...
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.