Question Cascading two listboxes

josephbupe

Registered User.
Local time
Today, 10:15
Joined
Jan 31, 2008
Messages
247
Hi,

I have two list boxes which I want to cascade but my code does not work:

Code:
   ' [COLOR=Teal]Find the record that matches the control.[/COLOR]
Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindFirst "(ProgrammeID) = " & Str(Nz(Me![lstProgrammes], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark

Forms!F_Training_Programmes_Past!lstParticipants.Requery

I will appreciate your help.

Joseph
 
Is ProgrammeID a String? Then you have to enclose them in ' (single quotes, so it should read..
Code:
rs.FindFirst "ProgrammeID = '" & Str(Nz(Me![lstProgrammes], 0)) & "'"
 
Thanx Paul.

Stay well.

Joseph
 

Users who are viewing this thread

Back
Top Bottom