I have a listbox on a subform. Its rowsource is:
SELECT TXMASTERS.ID1, TXCLIPS.ID2, " " AS Persons, TXCLIPS.NName AS Name, TXCLIPS.Comments, TXCLIPS.Start AS [Time In], TXCLIPS.End AS [Time Out], TXCLIPS.ID1
FROM TXMASTERS INNER JOIN TXCLIPS ON TXMASTERS.ID1 = TXCLIPS.ID1
WHERE (((TXCLIPS.ID1)=[FORMS]![Mainform1].[FORM].[ID1]))
ORDER BY TXCLIPS.ID2 DESC;
ie it gets filled with records that have the matching ID1 which is the parent table/Form primary key.
On the onclick event on the list I have:
Dim RS2 As Recordset
Set RS2 = Me.RecordsetClone
Me.RecordsetClone.FindFirst "[ID2] = " & Me![List25]
Me.Bookmark = RS2.Bookmark
Which makes the subform filter to the record matching ID2 loaded into the list.
The subform is bound to the table TXClips.
When the list is clicked, the Bookmark code causes the list to flash/refresh each time. Any ideas? Thanks
SELECT TXMASTERS.ID1, TXCLIPS.ID2, " " AS Persons, TXCLIPS.NName AS Name, TXCLIPS.Comments, TXCLIPS.Start AS [Time In], TXCLIPS.End AS [Time Out], TXCLIPS.ID1
FROM TXMASTERS INNER JOIN TXCLIPS ON TXMASTERS.ID1 = TXCLIPS.ID1
WHERE (((TXCLIPS.ID1)=[FORMS]![Mainform1].[FORM].[ID1]))
ORDER BY TXCLIPS.ID2 DESC;
ie it gets filled with records that have the matching ID1 which is the parent table/Form primary key.
On the onclick event on the list I have:
Dim RS2 As Recordset
Set RS2 = Me.RecordsetClone
Me.RecordsetClone.FindFirst "[ID2] = " & Me![List25]
Me.Bookmark = RS2.Bookmark
Which makes the subform filter to the record matching ID2 loaded into the list.
The subform is bound to the table TXClips.
When the list is clicked, the Bookmark code causes the list to flash/refresh each time. Any ideas? Thanks