G
Guest
I sent a request yesterday in another newsgroup, but didn't quite get the
answer I was looking for or maybe I didn't explain myself very well (I
constantly do that). I have several laptops/tabletPCs that contains a copy
of my DB that is also maintained on a main PC. These laptops are not on a
network so to update the main PC or to update the laptops the user must
export about 8-10 txt files. Then the laptops or main PC must then import
the txt files. I created temp tables with information deleted before any
import is performed. Now the problem I see and need help on is since my
regular tables have a relationship how do I update the regular tables if the
information has changed and append the ones that are new? For instance say I
have 3 tables and 3 temp tables.
tblShopCode
ShopID autonumber
ShopName
etc
tblStudents
StuID autonumber
PayNumber(this can't be the PK for other reasons)
FName
LName
etc.
tblTest
TestID autonumber
StuID
etc.
The temp tables contain the same info except the tables name would be like
tblTestTemp.
Now since each laptop can export different or same ID autonumbers how do I
update the correct student with the correct ShopID and append the ones that
are new? Then update the test if changes were made or add new tests if
needed. I hope someone here can help me on this. Thanks in advance.
answer I was looking for or maybe I didn't explain myself very well (I
constantly do that). I have several laptops/tabletPCs that contains a copy
of my DB that is also maintained on a main PC. These laptops are not on a
network so to update the main PC or to update the laptops the user must
export about 8-10 txt files. Then the laptops or main PC must then import
the txt files. I created temp tables with information deleted before any
import is performed. Now the problem I see and need help on is since my
regular tables have a relationship how do I update the regular tables if the
information has changed and append the ones that are new? For instance say I
have 3 tables and 3 temp tables.
tblShopCode
ShopID autonumber
ShopName
etc
tblStudents
StuID autonumber
PayNumber(this can't be the PK for other reasons)
FName
LName
etc.
tblTest
TestID autonumber
StuID
etc.
The temp tables contain the same info except the tables name would be like
tblTestTemp.
Now since each laptop can export different or same ID autonumbers how do I
update the correct student with the correct ShopID and append the ones that
are new? Then update the test if changes were made or add new tests if
needed. I hope someone here can help me on this. Thanks in advance.