I have code that adds a record to a list box. I then select the new record using
The new record is always the first record, and headers are not shown
On the form I have a button to print a report for the record selected. I create a "where" clause like this
but the Wclause does not return the correct OrderPickId of the record selected in the first line of code. It does if I click a record in the list box.
How can I modify my first line of code to so that the recorded is selected as if I had selected it by clicking on it?
Many thanks
Code:
Me.lstPickingSlipsCreated.Selected(lrow:=0) = True
On the form I have a button to print a report for the record selected. I create a "where" clause like this
Code:
Wclause = "OrderPickId = " & Me.lstPickingSlipsCreated
How can I modify my first line of code to so that the recorded is selected as if I had selected it by clicking on it?
Many thanks