hi
I have the following problem:
I have a form that has a huge listbox on it. When user chooses the row in that listbox, I want to take a value of the first column of the row and open another form that will also consist of a listbox, whose RowSource property will be based on the value I've taken from the first form
This is the code I tried:
intTransit = List0.ItemData(List0.ItemsSelected(0))
'this is to take a value of the first column
'then I need to open another form
DoCmd.OpenForm "TransitBb"
Form_TransitBb.List0.RowSource = "SELECT RecordID, Transit where ((Transit) = " & intTransit & " ORDER BY BlackBerryRecord.PIN "
Well, this code does not work, ...but I put here to give you the idea of what I want to do.
Please suggest anything regarding this issue
Thanks a lot
I have the following problem:
I have a form that has a huge listbox on it. When user chooses the row in that listbox, I want to take a value of the first column of the row and open another form that will also consist of a listbox, whose RowSource property will be based on the value I've taken from the first form
This is the code I tried:
intTransit = List0.ItemData(List0.ItemsSelected(0))
'this is to take a value of the first column
'then I need to open another form
DoCmd.OpenForm "TransitBb"
Form_TransitBb.List0.RowSource = "SELECT RecordID, Transit where ((Transit) = " & intTransit & " ORDER BY BlackBerryRecord.PIN "
Well, this code does not work, ...but I put here to give you the idea of what I want to do.
Please suggest anything regarding this issue
Thanks a lot