Hi Experts, I am porting some data over to a new database that I have made. Now I have CustomerContacts and Customers. What I am trying to do is load contacts in. Now when im doing this I am getting the customerContacts number from the table. Sometimes however, the contacts don't have a number... if this is the case I am trying to use the companies number instead against that contact. Eg; INSERT INTO dbo_TBLCOMPANYCONTACTNUMBERS ( COMPANYCONTACTID, COMPANYCONTACTNUMBERTYPEID, COMPANYCONTACTNUMBER, ADDEDON, ADDEDBY )SELECT dbo_TBLCOMPANYCONTACTS.COMPANYCONTACTID, 1 AS Expr1, Nz([Custcon].[phone],[Customer].[Phone]) AS Expr4, Date() AS Expr2, "Barry" AS Expr3FROM (dbo_Custcon INNER JOIN (dbo_TBLCOMPANYCONTACTS RIGHT JOIN dbo_TBLCOMPANY ON dbo_TBLCOMPANYCONTACTS.COMPANYID = dbo_TBLCOMPANY.COMPANYID) ON dbo_Custcon.Code = dbo_TBLCOMPANY.COMPANYCODE) INNER JOIN dbo_Customer ON dbo_Custcon.Code = dbo_Customer.Code;
"Impossible is Nothing" 