R
randria
Hello everyone,
I have form ( record sourece table1)that has a control (ctr1) whose value I
need to update to a field in a different table ( table2). I have a command
button that I have to click everytime before closing the form to run an
update query so that the current value of ctr1 is copied to the field in
table2.
- It works fine when new records were posted. But when previous records were
changed or deleted, it gives an error message ( the db couldn't run the
update query and couldn t save all records because of various violations
.....) .
2 questions:
1-is it possible to remove the command button and programmatically run
the update query before closing ? I have not written an SQL in codes. I
tried to copy the SQL from SQL View but I get errors.
2- What should I do before running the update query in a situation when
the users changed or deleted the records ?
Many thanks.
I have form ( record sourece table1)that has a control (ctr1) whose value I
need to update to a field in a different table ( table2). I have a command
button that I have to click everytime before closing the form to run an
update query so that the current value of ctr1 is copied to the field in
table2.
- It works fine when new records were posted. But when previous records were
changed or deleted, it gives an error message ( the db couldn't run the
update query and couldn t save all records because of various violations
.....) .
2 questions:
1-is it possible to remove the command button and programmatically run
the update query before closing ? I have not written an SQL in codes. I
tried to copy the SQL from SQL View but I get errors.
2- What should I do before running the update query in a situation when
the users changed or deleted the records ?
Many thanks.