SELECT c.RPwebservicesActive, c.Contactname, c.username, c.password, c.ID,c.CustCodeLink FROM tblContact c
INNER JOIN tblInvMas IM ON C.ID = IM.ContactID ORDER By Contactname