Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 17th, 2003, 08:56 PM
hamster84 hamster84 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Singapore
Posts: 21 hamster84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problems wif database and applications

Hello!

I using visual basic 6 to do my application and using Microsoft Access 2000 as my database as file.

I need to get a certain number of fields in my database table in order to load the number of images out on to my application. Like for examples, i got 3 fields of data, i need to load 3 images... How can i go about in doing it?

Thanks.

Reply With Quote
  #2  
Old August 18th, 2003, 05:16 AM
Strannik Strannik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 13 Strannik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What DB engine do you use(JET, ADO) ?

Reply With Quote
  #3  
Old August 18th, 2003, 08:30 AM
hamster84 hamster84 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Singapore
Posts: 21 hamster84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

I using ADO.

Thanks.

Reply With Quote
  #4  
Old August 18th, 2003, 09:16 AM
Strannik Strannik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 13 Strannik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by hamster84
Hi

I using ADO.

Thanks.


Firstly sorry for the mistake. I meant DAO not JET. Because JET is most widespread OLEDB provider for MS Access.

You can do the following:

Set oCon = New Connection
oCon.Open sConnectionString

Dim rs As ADODB.Recordset
Set rs = oCon.OpenSchema(adSchemaColumns)

Do While Not rs.EOF
if rs!TABLE_NAME = "MyTable" Then
.... 'custom processing
End If
rs.MoveNext
Loop

set rs = Nothing
Set oCon = Nothing

Reply With Quote
  #5  
Old August 18th, 2003, 08:56 PM
hamster84 hamster84 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Singapore
Posts: 21 hamster84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Strannik for ur help...!


I will try to figure abt other coding...!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Problems wif database and applications


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway