[/FONT]
[FONT=Courier New]Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
'Use the ADO connection that Access uses
Set cn = CurrentProject.AccessConnection
'Create an instance of the ADO Recordset class, and
'set its properties
Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = cn
.Source = "SELECT * FROM Customers"
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.Open
End With
'Set the form's Recordset property to the ADO recordset
Set Me.Recordset = rs
Set rs = Nothing
Set cn = Nothing
[/FONT]
[FONT=Courier New]Dim strCNXN As String
Dim CNXN As New ADODB.Connection
Dim db As String
db = "E:\Personal_Files\Access\MAINDB.accdb"
Set CNXN = New ADODB.Connection
strCNXN = "Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=E:\Personal_Files\Access\MAINDB.accdb;Uid=Admin;Pwd=123;"
CNXN.Open strCNXN
[/FONT]
[FONT=Courier New]DoCmd.GoToRecord , "", acNewRec[/FONT]
[FONT=Courier New]Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim strCNXN As String
Dim CNXN As New ADODB.Connection
Dim db As String
db = "E:\Personal_Files\Access\MAINDB.accdb"
Set CNXN = New ADODB.Connection
strCNXN = "Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=E:\Personal_Files\Access\MAINDB.accdb;Uid=Admin;Pwd=123;"
CNXN.Open strCNXN[/FONT]
[FONT=Courier New] 'Use the ADO connection that Access uses
Set cn = CNXN[/FONT]
[FONT=Courier New] 'Create an instance of the ADO Recordset class, and
'set its properties
Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = cn
.Source = "SELECT * FROM OKOKTable1"
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.Open
End With
'Set the form's Recordset property to the ADO recordset
Set Me.Recordset = rs
Set rs = Nothing
Set cn = Nothing
[/FONT]
[FONT=Courier New]See my original post, if that's what you want to do then you'll need to write code for all the built-in functionality that Access offers.[/FONT]
[FONT=Courier New]
[/FONT]
[FONT=Courier New]Why don't you want data deleted from the source?[/FONT]
[FONT=Courier New]
[/FONT]
[FONT=Courier New]What do you mean by front-end table?[/FONT]
[FONT=Courier New]
[/FONT]
[FONT=Courier New]Have you split a database into front-end/back-end?[/FONT]
[FONT=Courier New]
[/FONT]
[FONT=Courier New]If you have you shouldn't have any tables in the front-end, and you should have links to all the tables in the back-end.[/FONT]
[FONT=Courier New]
[/FONT]
[FONT=Courier New]Why multivalue fields?[/FONT]
[FONT=Courier New]