G
Guest
I have a form, and due to a lack of planning, I have had to create a new
table to hold some of the data from that form in a different layout than what
was in the original table.
The problem I now have aftering getting my SQL insert working, is that it is
now possible for the user to save the data, make changes to the form, then
save it again. For the original table this is not an issue, but since my SQL
insert code is behind the SAVE command button, it will write another row in
the new table.
I should probably just re-do the entire database, but due to time
constraints, I would rather look for a work-around.
Does anyone have a suggestion on how to code my SQL insert so that if the
user has already saved the record once, that saving a second time would only
update the row and not write a second row?
Thanks in advance.....I'll start planning to rewrite the entire db now....
table to hold some of the data from that form in a different layout than what
was in the original table.
The problem I now have aftering getting my SQL insert working, is that it is
now possible for the user to save the data, make changes to the form, then
save it again. For the original table this is not an issue, but since my SQL
insert code is behind the SAVE command button, it will write another row in
the new table.
I should probably just re-do the entire database, but due to time
constraints, I would rather look for a work-around.
Does anyone have a suggestion on how to code my SQL insert so that if the
user has already saved the record once, that saving a second time would only
update the row and not write a second row?
Thanks in advance.....I'll start planning to rewrite the entire db now....