Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Recordset Catalogs


Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2006, 12:36 AM
Dbee's Avatar
Dbee Dbee is offline
Centurion
 
Join Date: Dec 2002
Posts: 186
Default 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
Reply With Quote
  #2  
Old 09-17-2006, 03:21 AM
Shurik12 Shurik12 is offline
Steppe Walker

Retired Moderator
* Expert *
 
Join Date: Jul 2002
Location: Ukraine/Russia/Belgium
Posts: 7,227
Default

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'
Reply With Quote
  #3  
Old 09-17-2006, 04:49 AM
Dbee's Avatar
Dbee Dbee is offline
Centurion
 
Join Date: Dec 2002
Posts: 186
Default

Thanks Learn something HOW to open a table
__________________
Don

Old DOS Programmer
Reply With Quote
  #4  
Old 09-18-2006, 03:09 AM
Dbee's Avatar
Dbee Dbee is offline
Centurion
 
Join Date: Dec 2002
Posts: 186
Default 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
Reply With Quote
  #5  
Old 09-18-2006, 04:03 AM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

What's S1S?
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
Reply With Quote
  #6  
Old 09-18-2006, 10:05 AM
loquin's Avatar
loquin loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,378
Default

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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->