Solved

what is the best way to mange type records

Posted on 2008-10-09
4
151 Views
Last Modified: 2012-05-05
I want to create a use type called LibraryInfo
Public Type LibraryInfo
    Id As Long
    Name As String
    DocPath As String
    Connection As String
End Type

Which contains the infomation for the dirrerent Library Databases that I can connect to.
What is the best way to manage a collection of libraries?

I want to be able to
Add
Traverse
Search

to the collection of library



0
Comment
Question by:keptins
  • 2
4 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22682512
keptins said:
>>What is the best way to manage a collection of libraries?

1) Create an array of type LibraryInfo
2) Create a Collection and add your LibraryInfo items to it
3) (my favorite) create custom classes, one class as the container collection and another class defining each instance
0
 

Author Comment

by:keptins
ID: 22682584
let me explain what i'm doing
I have a lot of SQL Database that are document libraries.
I'm trying to create a utility that can connect to any libray and perform a function or series of functions.
I've tried to create a collection
bit it would not take the user type... unless I did something wrong
0
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 125 total points
ID: 22683660
If I understand your question then maybe you want to look into something like this
http://msdn.microsoft.com/en-us/library/aa260635(VS.60).aspx
0
 

Author Closing Comment

by:keptins
ID: 31504796
This is what I want to accomplish..
I've not dealt with classes so look for more questions.
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now