Hi,
I have the following code on a form:
Option Compare Database
Option Explicit
------------------------------------
Private Sub List0_AfterUpdate()
ShowRecord.Enabled = True
End Sub
--------------------------------------
Private Sub List0_DblClick(Cancel As Integer)
If Not IsNull(List0) Then
ShowRecord_Click
End If
End Sub
--------------------------------------
Private Sub ShowRecord_Click()
Dim rst As Recordset
Set rst = Forms!Test.RecordsetClone
rst.FindFirst "ID = " & List0
Forms!Test.Bookmark = rst.Bookmark
DoCmd.Close acForm, "GoToRecordDialog"
End Sub
------------------------------------
The error comes up with:
Compile error, Method or member data not found.
I have borrowed it off another comany database and it works fine in that one.
Thanks
Dom
I have the following code on a form:
Option Compare Database
Option Explicit
------------------------------------
Private Sub List0_AfterUpdate()
ShowRecord.Enabled = True
End Sub
--------------------------------------
Private Sub List0_DblClick(Cancel As Integer)
If Not IsNull(List0) Then
ShowRecord_Click
End If
End Sub
--------------------------------------
Private Sub ShowRecord_Click()
Dim rst As Recordset
Set rst = Forms!Test.RecordsetClone
rst.FindFirst "ID = " & List0
Forms!Test.Bookmark = rst.Bookmark
DoCmd.Close acForm, "GoToRecordDialog"
End Sub
------------------------------------
The error comes up with:
Compile error, Method or member data not found.
I have borrowed it off another comany database and it works fine in that one.
Thanks
Dom