Hi,
I have a hard way to accomplish the following scenario.
My database has front-end (stored form) and back-end (stored table).
I used to let the user work directly with the back-end, but we had a lot of disconnection issue within our LAN, so I decide to download the data from the back-end to the front-end local table, then once the work is done, update the data back to the back-end table.
It would be easy if it's a 1 on 1 update.
But in my case, a user can add new record to the local table, but also delete the record in the local table.
How should I do so the table in my back-end to update the data from local, and if the record on local is deleted, then delete that record in the back-end, and also, if new record has been added to the local, then add that new record to the back-end.
I have a table that has 1 record per teacher, and each teacher can add student.
tblTeacher (id, teacher_name)
tblTeacherLocal (id, teacher_name)
- To update record from tblTeacher to tblTeacherLocal is easy as it's a one to one.
tblStudent (id, teacher_id, student_name)
tblStudentLocal (id, q_id, teacher_id, student_name)
- I created the q_id to pull the id from the tblStudent so it can update back to that specific record.
- If the user add a new student to tblStudentLocal, the q_id will be blank as it's data from Local, so that data needs to push added to the tblStudent.
- If the user delete a student in tblStudentLocal, the tblStudent needs to know that missing q_id and delete that record.
Any help will be appreciated.
Thanks
I have a hard way to accomplish the following scenario.
My database has front-end (stored form) and back-end (stored table).
I used to let the user work directly with the back-end, but we had a lot of disconnection issue within our LAN, so I decide to download the data from the back-end to the front-end local table, then once the work is done, update the data back to the back-end table.
It would be easy if it's a 1 on 1 update.
But in my case, a user can add new record to the local table, but also delete the record in the local table.
How should I do so the table in my back-end to update the data from local, and if the record on local is deleted, then delete that record in the back-end, and also, if new record has been added to the local, then add that new record to the back-end.
I have a table that has 1 record per teacher, and each teacher can add student.
tblTeacher (id, teacher_name)
tblTeacherLocal (id, teacher_name)
- To update record from tblTeacher to tblTeacherLocal is easy as it's a one to one.
tblStudent (id, teacher_id, student_name)
tblStudentLocal (id, q_id, teacher_id, student_name)
- I created the q_id to pull the id from the tblStudent so it can update back to that specific record.
- If the user add a new student to tblStudentLocal, the q_id will be blank as it's data from Local, so that data needs to push added to the tblStudent.
- If the user delete a student in tblStudentLocal, the tblStudent needs to know that missing q_id and delete that record.
Any help will be appreciated.
Thanks