Hi,
I have a database table called : "tbl_advise urs" with the fields;
- ID_adv
- NR_adv (primary key)
- Segment
- ZIP
- TEL
- AM
- AD
Now, every now and again i get an updated list for this table with;
- update rows (so the existing records must be update)
- new record
- deleted records
This is delivered in excel. I then import this data in a table called "import_adv "
I now have a "update Query" that works fine for updating existing records. Fields in the qyery;
- Segment
- Zip
- TEL
- AM
- AD
However it does not append the new records to the existing database and it does not delete records that are not in the "import_adv " table
How can i make sure that new records in the import_adv table are appended tot the tbl_adviseurs ?
How can i make sure that records that are deleted in the import_adv table are also deleted from the tbl_adviseurs ?
Any help would be greatly appreciated!
Pierre
I have a database table called : "tbl_advise urs" with the fields;
- ID_adv
- NR_adv (primary key)
- Segment
- ZIP
- TEL
- AM
- AD
Now, every now and again i get an updated list for this table with;
- update rows (so the existing records must be update)
- new record
- deleted records
This is delivered in excel. I then import this data in a table called "import_adv "
I now have a "update Query" that works fine for updating existing records. Fields in the qyery;
- Segment
- Zip
- TEL
- AM
- AD
However it does not append the new records to the existing database and it does not delete records that are not in the "import_adv " table
How can i make sure that new records in the import_adv table are appended tot the tbl_adviseurs ?
How can i make sure that records that are deleted in the import_adv table are also deleted from the tbl_adviseurs ?
Any help would be greatly appreciated!
Pierre
Comment