LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default ADO Field Size SELECT

I am trying to access a lotus notes database through ADO and when I do a few
of the fields are having their information truncated so I am only getting
the first 254 characters. How through VBA can I select those fields and get
ALL the data in them?

Here is the test code I am playing with...

Function ReadLotusECNExport()

Dim oConn As ADODB.Connection
Dim rs As ADODB.Recordset

myServerName = "ARLNotes1/USMARINE"
myDbName = "BBGCorAct.nsf"

'Connect to a Database
Set oConn = CreateObject("ADODB.Connection")
oConn.ConnectionString = "DRIVER={Lotus NotesSQL Driver (*.nsf)};SERVER=" &
myServerName & ";DATABASE=" & myDbName
oConn.Open

'Create a recordset object
Set rs = CreateObject("ADODB.RecordSet")
rs.ActiveConnection = oConn
rs.CursorLocation = adUseClient
rs.CursorType = adOpenDynamic
rs.LockType = adLockPessimistic

strSQL = "SELECT Main.Description FROM Main WHERE
((Main.Status)<'Closed');"

rs.Open strSQL

Do

Debug.Print rs!Description

rs.MoveNext

Loop Until rs2.EOF
rs.Close

End Function


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does field size DEcrease when I add a new tab Rosalind Excel Discussion (Misc queries) 1 November 1st 09 05:56 PM
Setting field size and type tsap Excel Discussion (Misc queries) 1 December 13th 07 11:05 PM
mailmerge maximum field size Rogwirral Excel Discussion (Misc queries) 2 September 13th 07 09:20 AM
Limit to field size with .CopyFromRecordset Jeff M Excel Programming 2 August 22nd 06 07:10 AM
pivot field size (column field) Kanan Excel Programming 0 April 9th 04 11:41 PM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"