Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Reading from DB to Array/Variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cash - 30 Oct 2006 23:00 GMT
I'll better start by informing that I'm newbie into DB v/s VB.

What I need to do is to read from a different tables in a Access-DB and copy
the information into an array or an varibale. For each table there is one
array.

Could someone please instruct me, with example, on how to do it.
Would appreciate an example.

Thanx.
Jezebel - 30 Oct 2006 23:33 GMT
Dim MyArray() as [whatever]

Redim MyArray(1 to MyTable.RecordCount)
For pIndex = 1 to MyTable.RecordCount
   MyArray(pIndex) = MyTable.Fields(...)
   MyTable.MoveNext
Next

> I'll better start by informing that I'm newbie into DB v/s VB.
>
[quoted text clipped - 7 lines]
>
> Thanx.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.