Here is the code on main form:
Option Compare Database
Public CN As New ADODB.Connection
Public rs As New ADODB.Recordset
Private Sub Form_Load()
Set CN = CurrentProject.Connection
rs.Open "select * from INVT_MAIN", CN, adOpenStatic, adLockOptimistic
rs.MoveFirst
End Sub
For ex. tables customers and vendors are very much alike so with small modification I can use one form to show them both. Also, with recorset I can use field numbers not names, read different tables and show them in this same textboxes.
Andrew