IF NOT DB_GetLBItem (hWndDriverList_DriverBox, p3_CurrentRow, 0, 
		     szDriverId) THEN
   Exit;
   
StrCopy (szQuery, 'Driver NJOIN Trip RESTRICT (DriverId = ^');
StrCat (szQuery, szDriverId);
StrCat (szQuery, '^) PROJECT (Destination, TripDate)');

IF NOT DB_CreateDerivedTable (hSession, 'DTV', 'DriverTrips', szQuery) THEN
   Exit;
   
hTable := DB_OpenTable (hSession, 'DriverTrips');
IF hTable <> 0 THEN
   DB_TableToListBox (hSession, hTable, hWndDriverTrips_TripsBox, '', TRUE);
   
DB_CloseTable (hSession, hTable);
DB_DropTable (hSession, 'DriverTrips');      
