Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Recordset value return as 0?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,833
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Recordset value return as 0?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Recordset value return as 0? - 4/21/2003 12:41:41 AM   
  kclow

 

Posts: 1
Score: 0
Joined: 4/21/2003
From:
Status: offline
Hi, just facing some weird problem as I am running a VBS program.
Am using this VBS to generate a report to Excel by selecting from a DB (through DSN)... but I faced 2 strange problems:

a) After calling
sql_str = "select * from POSITION_HOLD"
Set rs = conn.execute(sql_str)

All the numeric fields selected returns 0 when I do as follow:
Total_Investment_unit = rs("POS_T_INVEST_UNIT")

b) If I call the sql_str as "select * from POSITION_HOLD order by FUND_CODE", I will get an error:
[Oracle][ODBC][Ora]ORA-01013: user requested cancel of current operation

Can anyone help me, as I normally use VB without any problem... but now I am required by user to use VBS instead!

Thanks in advance...

kclow
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Recordset value return as 0? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts