C
Confused
This same code works on another similar database. But on this I keep getting
a syntax error (missing operator) on rst.FindFirst section in the code below.
I did a Debug and it says Sub of Function not Defined on rst.FindFirst
section.
Private Sub Show_Record_Click()
' Find the selected record, then close the dialog box.
Dim rst As DAO.Recordset
' Store the recordset for the CLECS form.
Set rst = Forms!CLECS2MainForm.RecordsetClone
' Locate the record for the selected CLECS.
rst.FindFirst "[CLEC ID] = " & List2
' Set the form's Bookmark property to move to the record.
Forms!CLECS2MainForm.Bookmark = rst.Bookmark
' Close the dialog box.
DoCmd.Close acForm, "GoToRecordDialog"
Sorry I posted the same question before, but I tried many different ways to
make this work, so I felt the need to start over. Please forgive...
a syntax error (missing operator) on rst.FindFirst section in the code below.
I did a Debug and it says Sub of Function not Defined on rst.FindFirst
section.
Private Sub Show_Record_Click()
' Find the selected record, then close the dialog box.
Dim rst As DAO.Recordset
' Store the recordset for the CLECS form.
Set rst = Forms!CLECS2MainForm.RecordsetClone
' Locate the record for the selected CLECS.
rst.FindFirst "[CLEC ID] = " & List2
' Set the form's Bookmark property to move to the record.
Forms!CLECS2MainForm.Bookmark = rst.Bookmark
' Close the dialog box.
DoCmd.Close acForm, "GoToRecordDialog"
Sorry I posted the same question before, but I tried many different ways to
make this work, so I felt the need to start over. Please forgive...