J
JAF
I am an old Foxpro programmer, and I am having trouble udnerstanding
Acess. None of the books I have seem to explain things in terms I
understand.
I need to find out how to handle "relations" between files.
In Foxpro, if I had several files, I could "relate" them in order to
do lookups, data check's etc. How do I do this in Access?
For example, here are some sample files
PERSON file with the following fields
id
first name
last name
zip
ZIPCODE file with the following fields
zip
city
state
I would then give the following commands in Foxpro, whcih I think most
of you will udnerstand
use ZIPCODE index ZIP
select 2 (or select another data area)
usePERSON
set RELATION to zip into ZIPCODE
This line says to use the zip field in PERSON to do lok ups into the
ZIPCODE file, which is index on the zip field in the ZIPCODE file.
Now having done this, I can work with the fields from ZIPCODE as if
they are parrt of the PERSON file.
For example, I can list info
list first name, last name, address, zipcode.city, zipcode.state,
zipcode
Or I can sort like
sort on ZIPCODE.state, ZIPCODE.city to TEMPFILE
Realizing the commands are different betweent eh two software
packages, how do I achieve a similar relational capability in Access?
Thanks for your help
JF
www.discountdrivingschool.com
Best regards,
JAF
http://www.discountdrivingschool.com
Acess. None of the books I have seem to explain things in terms I
understand.
I need to find out how to handle "relations" between files.
In Foxpro, if I had several files, I could "relate" them in order to
do lookups, data check's etc. How do I do this in Access?
For example, here are some sample files
PERSON file with the following fields
id
first name
last name
zip
ZIPCODE file with the following fields
zip
city
state
I would then give the following commands in Foxpro, whcih I think most
of you will udnerstand
use ZIPCODE index ZIP
select 2 (or select another data area)
usePERSON
set RELATION to zip into ZIPCODE
This line says to use the zip field in PERSON to do lok ups into the
ZIPCODE file, which is index on the zip field in the ZIPCODE file.
Now having done this, I can work with the fields from ZIPCODE as if
they are parrt of the PERSON file.
For example, I can list info
list first name, last name, address, zipcode.city, zipcode.state,
zipcode
Or I can sort like
sort on ZIPCODE.state, ZIPCODE.city to TEMPFILE
Realizing the commands are different betweent eh two software
packages, how do I achieve a similar relational capability in Access?
Thanks for your help
JF
www.discountdrivingschool.com
Best regards,
JAF
http://www.discountdrivingschool.com