asp excel
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > asp excel




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    asp excel  
magix


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-24-07 12:17 AM

I try to use asp to extract excel data. if the item field in excel is empty,
can I use "" to represent empty ?

will this  (" ") work ?
rs("Item") = ""

rs.open "SELECT * FROM [Sheet1$]", oConn
do until rs.EOF
if rs("Item") = "" then
emptyfield = true
else
emptyfield = FALSE
end if
rs.movenext
Loop







[ Post a follow-up to this message ]



    Re: asp excel  
ThatsIT.net.au


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-24-07 06:17 PM

Without making a connection and testing it, I would think yes.

if not try Trim(rs("Item")) = ""
or even Trim(Cstr(rs("Item"))) = ""

or maybe rs("Item") = null



--
Dim Alan as ThatsIT.net.au.Staffmember
Alan.signature = "Thank You"
Response.Write Alan.signature.toString()
 ________________________________________
__

"magix" <magix@asia.com> wrote in message
news:46043574$1_1@news.tm.net.my...
>I try to use asp to extract excel data. if the item field in excel is
>empty, can I use "" to represent empty ?
>
> will this  (" ") work ?
>    rs("Item") = ""
>
> rs.open "SELECT * FROM [Sheet1$]", oConn
> do until rs.EOF
>       if rs("Item") = "" then
>               emptyfield = true
>       else
>            emptyfield = FALSE
>        end if
> rs.movenext
> Loop
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:39 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register