Support 805.461.7300
Sales
Our Technology. Your Success.

Copy a field from one list to another when records match

SET SAFETY OFF
SELECT("databaseWithInfo")
INDEX ON ALLT(UPPER(address))+ALLT(zip) TAG mytag
SELECT("databaseWithMissingInfo")
REPLACE all phone with databaseWithInfo.phone1,email with databaseWithInfo.email for SEEK(ALLT(UPPER(address))+ALLT(zip),"databaseWithInfo")

In the above command, I compared two databases, and when there were matches based on the address and zip fields, I took the information from the phone1 field in one database and copied it into the other database's phone field. I did the same with the email fields in the two databases.

DatabaseWithInfo is the database that originally contained the phone1 and email information. I wanted to take that information and put it into the fields named phone and email of the database named databaseWithMissingInfo.

The index line (the third line of the command) specifies which fields I want to compare between the two databases. That index is referenced again in the last line of the command, within the SEEK( ) function. The database that you're filling information with will only be referenced once in the command.

« Back to Commands

I wanted to take a minute to write accolades for your employee Eric Lambeth. I have been calling on Eric for training and help in the Accuzip software since May and I want you to know that from a client standpoint, he is second to none! Eric has gone way above and beyond in helping me learn and navigate your software as well as helping us through some crazy situations we have encountered. It is clearly evident that he knows this software inside and out. It is also evident that Eric loves the customer and is willing to do whatever it takes to help – he has even answered emails and called me on the weekend to help through some stuff I was unsure of! I cannot express enough how wonderful Eric has been for our organization. I will tell you that I came to this organization with a background in BCC software with plans to transition to BCC software. Eric’s knowledge, guidance, training, and willingness to help at all hours of the day/week has sold me on Accuzip! Your software solution is more user friendly and the support staff far exceeds BCC! I am also looking forward to investigating your other software solutions.
S.M., Elmhurst, IL