how do i connect, open and update records in an SQL database using VB6 and DAO?
DAO (and even RDO) these days is a complete obsolete. Can't you use ADO? It's much more robust and flexible. We have tons of samples available throughout the forums.
Microsoft MVP - Visual Basic 2006-2013 Why VB clears the clipboard on startup and how to avoid it? . Filtering Arrays . Save File To Database . Extract File From Database . Extract picture from database without using hard drive . Change Menu BackColor . How to use MS Flexgrid . Make Frame Transparent . The Easiest Way to Create an NT Service With VB6 . How to comment blocks of code in VB5 and VB6 . How to find and replace missing members of control array Visual Basic 6.0 On-Line Documentation . Connection Strings
had an application running on DAO in MsAccess but will certainly change to ADO. thanx
thes Code To Connect In Ado VB Code: Dim cn As New ADODB.Connection Dim X As String X = "Provider=MSDASQL;DRIVER=MySQL ODBC 3.51 Driver;Server=localhost;database=agc;Option=16387" cn.ConnectionString = X cn.Open
Dim cn As New ADODB.Connection Dim X As String X = "Provider=MSDASQL;DRIVER=MySQL ODBC 3.51 Driver;Server=localhost;database=agc;Option=16387" cn.ConnectionString = X cn.Open
Forum Rules