Vatchunter
Technical User
Been battling an issue with an Excel 2010 VLOOKUP, decided to create the 2 tables in Fox Pro to see if I had any better luck... and I didn't.
Saved Excel files as .CSV and imported them into Fox Pro 9.
I have added a field, call it ABC, in each table and populated the ABC field in both tables with these commands.
REPLACE ALL ABC WITH ALLTRIM(V) ALLTRIM(W)+ALLTRIM(X)+ALLTRIM(Y)+ALLTRIM(Z)
REPLACE ALL ABC WITH UPPER(ABC)
REPLACE ALL ABC WITH STRTRAN(ABC, ' ', '')
REPLACE ALL mmy WITH STRTRAN(mmy, '-', '')
Used this code to bring in the info
Select B
Index on ABC tag ABC
Select A
Set Relation to ABC into B
Replace all flag with B.Z
I have found a number of records that exist in table B that did not get a hit in table A, I think this may have something to do with the fields that make up the ABC field being number and text.
Any suggestions would be appreciated!
Thanks,
Frank
Saved Excel files as .CSV and imported them into Fox Pro 9.
I have added a field, call it ABC, in each table and populated the ABC field in both tables with these commands.
REPLACE ALL ABC WITH ALLTRIM(V) ALLTRIM(W)+ALLTRIM(X)+ALLTRIM(Y)+ALLTRIM(Z)
REPLACE ALL ABC WITH UPPER(ABC)
REPLACE ALL ABC WITH STRTRAN(ABC, ' ', '')
REPLACE ALL mmy WITH STRTRAN(mmy, '-', '')
Used this code to bring in the info
Select B
Index on ABC tag ABC
Select A
Set Relation to ABC into B
Replace all flag with B.Z
I have found a number of records that exist in table B that did not get a hit in table A, I think this may have something to do with the fields that make up the ABC field being number and text.
Any suggestions would be appreciated!
Thanks,
Frank