If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > where is the record ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-12-02, 05:27
Daniel Daniel is offline
Registered User
 
Join Date: Apr 2002
Posts: 6
where is the record ?

I have a problem that I can't seem to figure out.
This statement gives me a recordset called rsValves

Select * From qryVentilerOchPlatser Where vDelnr LIKE 'DM%' And pId is not Null Order by vDelnr

and this line of could should give me the following printout, right ?

Response.Write rsValves("vID") & " | " & rsValves("vDelnr") & " | " & rsValves("vFabrikat")

Printout: 6070 | DM001 | NAF

but instead I get this

6070 | | NAF

why is the middle column missing ???

Please, help !!

/ Daniel
Reply With Quote
  #2 (permalink)  
Old 06-13-02, 14:11
jolopy328 jolopy328 is offline
Registered User
 
Join Date: Jun 2002
Location: Michigan
Posts: 5
I would suspect that your problem is caused by one of two things:

1) The value of the field is NULL

2) The field was previously reference in the recordset, and because of certain settings for your connection/recordset the value was cleared out.

For example:
'-----------------
Set myRS = myConn.Execute("SELECT f1, f2 FROM t1")

If myRS("f1") = "yes" Then
Response.Write("f1 = " & myRS("f1"))
Else
Response.Write("f2 = " & myRS("f2"))
End If
'-----------------

If f1 is "yes" then you will see the following on the page:

f1 =

This happens because the value was cleared out of the recordset when it was reference in the If Expression.

Hope this helps...
Reply With Quote
  #3 (permalink)  
Old 06-14-02, 02:16
Daniel Daniel is offline
Registered User
 
Join Date: Apr 2002
Posts: 6
Thank you

Ahh, it's cleared out?!?!

Well, you live you learn...

Thank you

/ Daniel
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On