Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OK...weird problem here

Status
Not open for further replies.

japes89

IS-IT--Management
Oct 1, 2002
63
US
I have a simple recordset being pulled from a SQL DB.

set rsth = CreateObject("ADODB.Recordset")
strSQLh = "select * from Exhibits where ID=1"
rsth.Open strSQLh, conn


when I do a response.write of the first value ID, everything is OK, meaning it writes to the page.
--->response.write rsth("ID")
when I do a response.write for second value name, eveything is still OK.
--->response.write rsth("name")

yet when I do a response.write of rsth("notes"), notes do not show up and the value for name is gone now!

--->response.write rsth("notes")

I have even dim-ed variables and assign the recordset value to each variable, but same issue pops up.

Anyone have this problem? More importantly, anyone have a solution.

FYI .....
ID is int
Name is varchar(200)
Notes is text

JP
_______________________________________________
OutsideIntranets.com
Stop wasting time, get to work
 
Just found out something.....the error maybe due to 1 or more text type variants in the database. Whenever I try to pull a value from the database with a variant of text, then the rest of the variables get screwed.

any ideas why? _______________________________________________
OutsideIntranets.com
Stop wasting time, get to work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top