Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual 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 ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old August 1st, 2004, 04:25 AM
Flona_25 Flona_25 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 8 Flona_25 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
working with access!!plz help

i am working on an application using VB 6.0..
i faced a problem while i am trying to get a data from the database
it keeps giving me an error that the item isn't found..although i am sure of
the field name in the table.
here is my code. the field name is called UserID...

The code is as following:

Set dbMyDB = OpenDatabase("C:\Documents and Settings\Dalal\My Documents\IT_printers\IT_Printer.mdb")
Set rsMyRS = dbMyDB.OpenRecordset("Users", dbOpenDynaset)

If Not rsMyRS.EOF Then rsMyRS.MoveFirst
Do While Not rsMyRS.EOF
staffcombo.AddItem rsMyRS!UserID
''staffcombo.ItemData(staffcombo.NewIndex) = rsMyRS!ID
rsMyRS.MoveNext
Loop

i have a combo box that i want to put in the user id as the form loaded..
Thanx for ur help...i really appreciate it


And if there is another way to connect with the data base and select the needed informatiom
I'll will be thankful if u gave it to me..

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > working with access!!plz help


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