Hi,
Do you mean you have two companies in your database. And you want to compare the VAT Registration no's in table 18 (Customer)?
The Customer no's in table 18 are the same and you want to check if the customers have the same VAT Registration no in the two companies?
Or you want to check if the VAT Registration No exist in the other company customer table?
So again, use the CHANGECOMPANY command. What code have you already tried? What errors / problems are you having?
Think about what you want to do step by step or in pseudo-code first
Get the tax registration number for this customer and store it somewhere for future use.
Get the tax registration number for the same customer, but in a different company and store it somewhere for future use.
Compare each of those tax registration numbers and take the appropriate action.
Think about those individually, write the code for each individually, and you will have a solution.
Comments
Do you mean you have two companies in your database. And you want to compare the VAT Registration no's in table 18 (Customer)?
The Customer no's in table 18 are the same and you want to check if the customers have the same VAT Registration no in the two companies?
Or you want to check if the VAT Registration No exist in the other company customer table?
So again, use the CHANGECOMPANY command. What code have you already tried? What errors / problems are you having?
Think about what you want to do step by step or in pseudo-code first
Get the tax registration number for this customer and store it somewhere for future use.
Get the tax registration number for the same customer, but in a different company and store it somewhere for future use.
Compare each of those tax registration numbers and take the appropriate action.
Think about those individually, write the code for each individually, and you will have a solution.