|
-
Feb 4th, 2004, 06:56 PM
#1
Thread Starter
Frenzied Member
ADO SQL Server and text dataypes [resolved]
I have something strange happening. I am pulling data from an SQL Server table. It has 5 columns.
EmployerID int(4)
ApplicationID int(4)
EmployerName varchar(255)
WorkPerformed text(16)
EndDate datetime
If I do "Select * from Employers" and then try to get the values out of a recordset, the WorkPerformed field is blank.
Debug.Print rs.Fields(0) 'Gives the value
Debug.Print rs.Fields(1) 'Gives the value
Debug.Print rs.Fields(2) 'Gives the value
Debug.Print rs.Fields(3) 'Empty String
Debug.Print rs.Fields(4) 'Gives the value
But, if I do "Select WorkPerformed From Employers"
Debug.Print rs.Fields(0) 'Gives the value
Any idea why this is happening? Even if I look in the immediates window at run time, it hows no value for WorkPerformed the first way either.
Last edited by blindlizard; Feb 4th, 2004 at 11:57 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|