M
Malvina
Hello all,
I am trying to set up a code where my user will be able
to sort records in the list box. so far I used my
recordset query that generates the list box and sort it by
the item in the second column:
'****************************
Set rst = db.OpenRecordset("SELECT MAIN_ID, CLIENT_NAME,
MCT_VALUE_TXT, CLNT_ID " _
& " FROM rqryChoose WHERE MAIN_ID " &
lstChoosenList.Column(0, 1) & "" _
& " and MCT_VALUE_TXT = '" & lstChoosenList.Column
(2, 3) & "'" _
& " ORDER BY '" & lstChoosenList.Column(2, 3)
& "'")
rst.MoveFirst
'*****************************
nothing happens
Please give me any suggestions.
thank you ,
Malvina S.
I am trying to set up a code where my user will be able
to sort records in the list box. so far I used my
recordset query that generates the list box and sort it by
the item in the second column:
'****************************
Set rst = db.OpenRecordset("SELECT MAIN_ID, CLIENT_NAME,
MCT_VALUE_TXT, CLNT_ID " _
& " FROM rqryChoose WHERE MAIN_ID " &
lstChoosenList.Column(0, 1) & "" _
& " and MCT_VALUE_TXT = '" & lstChoosenList.Column
(2, 3) & "'" _
& " ORDER BY '" & lstChoosenList.Column(2, 3)
& "'")
rst.MoveFirst
'*****************************
nothing happens
Please give me any suggestions.
thank you ,
Malvina S.