
Originally Posted by
just_a_me
I'm completely new to databases so I'm not sure where to start. I made a table in Access 2003 and I created a datagrid that is connected to it using the wizard, but I want to insert records and create a connection without using the dataGrid. I've tried searching for a tutorial on this, but maybe I'm looking in the wrong place. Can anyone point me in the right direction to look in?
Here is a start.
VB Code:
Dim ADOCn As ADODB.Connection
Dim ConnString As String
ConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\YourMdbName.mdb;" & _
"Persist Security Info=False"
Set ADOCn = New ADODB.Connection
ADOCn.ConnectionString = ConnString
ADOCn.Open ConnString
The only thing you need to make this work is a reference to the Microsoft ActiveX Object Library.