 |

09-17-2006, 12:36 AM
|
 |
Centurion
|
|
Join Date: Dec 2002
Posts: 186
|
|
Recordset Catalogs
|
I am trying to use this to open a Table name and I keep getting ERROR 3265
Public Record_Set(30) As New ADODB.Recordset
Public Catalogs As New ADOX.Catalog
Record_Set(21).Open Catalogs.Tables("STATEMENT").name, Data_Connection(10), adOpenStatic, adLockOptimistic, adCmdTableDirect
Error is
Item cannot be found in the collection corresponding to the requested name or ordinal.
Now I Can Assess the Database uning Access2000
But Not In VB
Any Suggestion
|
__________________
Don
Old DOS Programmer
|

09-17-2006, 03:21 AM
|
|
Steppe Walker
Retired Moderator * Expert *
|
|
Join Date: Jul 2002
Location: Ukraine/Russia/Belgium
Posts: 7,227
|
|
Hi,
is there any specific reason you're trying to use ADOX here?
When the same can be achieved as follows:
Code:
rs.Open "Select * From TableBla",conn, adOpenStatic, adLockOptimistic
|
__________________
"A diaper is not like a computer that makes satisfying burbling noises from time to time, hinting at great inner complexity." Malcolm Gladwell
"I'm sitting here completely surrounded by no beer." Onslow, 'Keeping up appearances'
|

09-17-2006, 04:49 AM
|
 |
Centurion
|
|
Join Date: Dec 2002
Posts: 186
|
|
|
Thanks Learn something HOW to open a table
|
__________________
Don
Old DOS Programmer
|

09-18-2006, 03:09 AM
|
 |
Centurion
|
|
Join Date: Dec 2002
Posts: 186
|
|
Recordset Problems
|
Oh this is driveing me Dam NUTs can not get this to work. Been trying to get this for 4 days.
Been trying ever combination I can think of.
Got it to work once but would not do what I wanted.
Data_Connection(10) is open
Set Record_Set(21) = New ADODB.Recordset
Record_Set(21).Open "Select * From Statement", Data_Connection(10), adOpenStatic, adLockOptimistic
Set S1S = Record_Set(21)
Any Suggestion as to why I get error 3709
|
__________________
Don
Old DOS Programmer
|

09-18-2006, 04:03 AM
|
 |
Ultimate Antique
Administrator * Expert *
|
|
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
|
|
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
|

09-18-2006, 10:05 AM
|
 |
Google Hound
Retired Moderator * Guru *
|
|
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,378
|
|
|
You have arrays of connections and arrays of recordsets?
How many database files are you opening?
You are aware that a single connection supports an unlimited number of recordsets in a given database?
And, that connections are especially resource intensive to create and maintain? Recordsets are "expensive," too, but not as "expensive" as connections.
|
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting 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
|
|
|
|
|
|