If you have a reference to DAO then this code should get you what you want,
when you pass it the desired record number (say Autonumber 1,2,3...) to get
the email address from. You will also need to specify the correct Table, and
Field Names for "MyLinkedTable" and "FieldNameContainingEmailAddress" ...
Hope this helps...
Private Sub GetEmailAddress(TheNumberOfTheDesiredRecord As Integer)
Dim daoDbs as DAO.Database
Dim daoRec as DAO.Recordset
Dim strSqlSelect as String
Dim strEmailAddress as String
Dim intMyDesiredRecordNumber as Integer
Set daoDbs = CodeDb
intMyDesiredRecordNumber = TheNumberOfTheDesiredRecord
strSqlSelect = _
"Select MyLinkedTable.* " & _
"From MyLinkedTable " & _
"Where MyLinkedTableIDRecordNumber = ' & intMyDesiredRecordNumber & " ;"
Set daoRec = daoDbs.OpenRecordset(strSqlSelect)
If Not (daoRec.BOF AND daoRec.EOF) Then
strEmailAddress = daoRec("FieldNameContainingEmailAddress").Value
Else
MsgBox "No Record Available.",vbInformation,"No Record Available:"
End If
Exit Sub
End Sub