Thought I would post to see if anyone had any ideas of how to do the following.
i have this sql statment connecting to as400.
This code works but I would like to make it distinct by dtjobr.
Thanks
i have this sql statment connecting to as400.
Code:
Set rsNewTravelers = New Recordset
strsql = "select dtdept, dtrsrc, dtjobr, dtseq#, dtpart from " & g_strDataBase & ".CURPX1, " & g_strDataBase & ".CJOBH where dtjobr = dnjob and dnprnt <> 'Y'"
rsNewTravelers.Open strsql, g_Conn
This code works but I would like to make it distinct by dtjobr.
Thanks