VB Code:
strSQL = " SELECT PO.Verstoring, PO.OpdrachtId, PO.Bonnummer, " & _
" PO.ReceptId, A.ArtikelNaam, RT.TypeCode, " & _
" PO.RetourID, PO.RetourHoeveelheid, " & _
" PO.Plandatum, PO.ChargeGewicht, " & _
" PO.AantalCharges, PO.AantalGereed, " & _
" PO.StartDatumTijd, PO.LotnummerWas, " & _
" PO.Bestemming, R.Versie, PO.Status, " & _
" PO.Blokkeren, PO.Commentaar, " & _
" R.ChargeGewichtKg, R.Datum, PO.ProductCode, " & _
" PO.IsOrder, R.NieuwRecept, PO.IsVerwijderd, " & _
" PO.OperatorInvoer " & _
" From ReceptType RT, Recepten R, Artikelen A, ProductieOrders PO " & _
" WHERE RT.ReceptTypeId = R.ReceptTypeId (+) and " & _
" R.ReceptId = PO.ReceptId (+) and " & _
" PO.ReceptId = A.ArtikelId and " & _
" PO.IsVerwijderd = 0 " & _
" ORDER BY PO.Verstoring, PO.OpdrachtId "