User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 429,842 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,739 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums

Connecting VB 6.0 to microsoft access

Join Date: Nov 2007
Location: � Jogja �
Posts: 2,585
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 11
Solved Threads: 235
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Connecting VB 6.0 to microsoft access

  #2  
May 16th, 2008
This following code to connect vb 6 with access
place this code in module :
  1. Global Conn As ADODB.Connection
  2. Global rs As ADODB.Recordset
  3.  
  4. Sub Access_Connector()
  5. Set Conn = New ADODB.Connection
  6. Conn.Provider = "microsoft.jet.oledb.4.0"
  7. Conn.CursorLocation = adUseClient
  8. Conn.Open App.Path & "\SIS.mdb"
  9. End Sub
  10.  
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote  
All times are GMT -4. The time now is 6:31 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC