D/All
Some time ago I got help from this forum and this below code works fine to get all the data for the selected crew members from multiselect list box.
strSQL = "SELECT * FROM TBL_CREW " & _
"WHERE TBL_CREW.NAME IN(" & strCriteria & ");"
' Apply the new SQL statement to the query
qdf.SQL = strSQL
' Open the query
DoCmd.OpenQuery "Q_MULTIVIEW"
This above code gives all the details about the crew.
Can you pls advice me how to get say only two fields like their 'date_join' and 'passport' if ten crew members are selected from the multilist listbox and send it to excel sheet.
Some time ago I got help from this forum and this below code works fine to get all the data for the selected crew members from multiselect list box.
strSQL = "SELECT * FROM TBL_CREW " & _
"WHERE TBL_CREW.NAME IN(" & strCriteria & ");"
' Apply the new SQL statement to the query
qdf.SQL = strSQL
' Open the query
DoCmd.OpenQuery "Q_MULTIVIEW"
This above code gives all the details about the crew.
Can you pls advice me how to get say only two fields like their 'date_join' and 'passport' if ten crew members are selected from the multilist listbox and send it to excel sheet.