Sub ListNames()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("mytable", dbOpenTable)
rst.MoveFirst
Do While Not rst.EOF
With rst
MsgBox .Fields("conn_name")
.MoveNext
End With
Loop
End Sub
Sub ListNames()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("mytable", dbOpenTable)
rst.MoveFirst
Do While Not rst.EOF
With rst
MsgBox .Fields("conn_name")
.MoveNext
End With
Loop
rst.Close
End Sub