I have a List Box (lstBox1) with a "Requery" that populuates a second List Box (lstBox2). I am now trying to write code that loops thru all of the items in lstBox1 and runs the query that runs when an item in lstBox1 is "left-clicked". This is as far as I have gotten:
For i = 1 To NumList
lstBox1.Selected(i) = True
next i
Is there a line that I can put after "lstBox1.Selected(i) = True to simulate a "left mouse click"?
I tried "DoCmd.Requery Forms!frm1!lstBox1.Requery" but that doesn't run the "Requery" associated with lstBox1.
Thank you for any help.
Jim
For i = 1 To NumList
lstBox1.Selected(i) = True
next i
Is there a line that I can put after "lstBox1.Selected(i) = True to simulate a "left mouse click"?
I tried "DoCmd.Requery Forms!frm1!lstBox1.Requery" but that doesn't run the "Requery" associated with lstBox1.
Thank you for any help.
Jim