-----Original Message-----
Hi Mal,
Did you set a reference to DAO?
Cor
Thanks for you help Cor. I'm just learning VB. I am
taking this code from a resource book that is explaining
how to create a "dialog box to go to a specific record".
What am I missing to set the reference to DAO? This is the
code they give me:
Private Sub ShowRecord_Click()
'find the selected record, then close the dialog box
Dim rst As DAO.Recordset
'Store the recordset for teh Master Form
Set rst = Forms!Master.RecordsetClone
'Locate the record for the slected account number
rst.Findfirst" "AccountNumber=" " & List0
'Set the form's Bookmark property to move to the record
Forms!Master.Bookmark = rst.Bookmark
'Close the dialog box
DoCmd.Close acForm, "GoToRecordDialog"
End Su