Dianasmi:
Glad it helps some.
Don't know if you can use this command in 5, but in 3+ you would be able to copy the structure of the existing db to a seperate (and entirely new) db file with only the fields you want.
Here's a snapshot of the Help documentation in 3+....
[tt]
COPY
----
Syntax : COPY TO <new file> [<scope>] [FIELDS <field list>] [FOR <cond>]
[WHILE <cond>] [[TYPE] <file type>] /
[DELIMITED [WITH BLANK/<delimiter>]]
[red]COPY STRUCTURE TO <new file> [FIELDS <field list>][/red]
Description : Duplicates all or part of the active database file to
a specified database file or, if you use the TYPE or DELIMITED
options, to a foreign or text file respectively. COPY
STRUCTURE creates a duplicate of the structure of the database
file in USE. COPY STRUCTURE EXTENDED creates a new database
with 4 fields: field name, type, length and number of decimals,
the contents of which are field names, etc... of the old file.
HELP ¦<C:>¦ ¦ ¦ ¦Num
Previous screen - PgUp. Previous menu - F10. Exit with Esc or enter a command.[/tt]
It would look like this:
COPY STRU TO newFile.dbf FIELDS fieldNum1, fieldNum3, fieldNum2, fieldNum4
Notice that the fileds will be rearranged in the NEW dbf file in the manner they were copied.
Don't forget to have the dbf you want to COPY FROMalready opened, BEFORE you use the COPY STRUCTURE command--if not already opened it'll ask you for the name.
Good Luck,
--MiggyD "The world shrinks more and more with every new user online."