M
Marcel Stoop
Hi everyone
I guess I have a bit of an unusual problem. I hope some one could point me
in the right direction.
Situation:
On Form X I have a Button called "Add". Every time a user hits this button,
Data is collected and a SQL Statement is to be performed:
Dim sSQLinsert As String
sSQLinsert = "INSERT INTO q (q1, q2, q3) VALUES (a, b, c);
DoCmd.RunSQL sSQLinsert
On that same Form I have a second Button called "Delete", this will perform
a Delete statement.
Problem:
I want to change this whole procedure.
As soon as an user hits either the "add" and/or the "Delete" Button, the
relating SQL should be gathered but not yet be performed.
This would mean that several "INSERT" and or several "DELETE" statements
have to be collected.
As soon as the User hits the "Save" button, all those several SQL statements
have to be run.
As soon as the User hits the "Cancel" button, no SQL statement will be
performed, and all the collected SQL statements will be cleaned away.
I would sure be glad if someone could point me in the right direction.
Cheers
Marcel
I guess I have a bit of an unusual problem. I hope some one could point me
in the right direction.
Situation:
On Form X I have a Button called "Add". Every time a user hits this button,
Data is collected and a SQL Statement is to be performed:
Dim sSQLinsert As String
sSQLinsert = "INSERT INTO q (q1, q2, q3) VALUES (a, b, c);
DoCmd.RunSQL sSQLinsert
On that same Form I have a second Button called "Delete", this will perform
a Delete statement.
Problem:
I want to change this whole procedure.
As soon as an user hits either the "add" and/or the "Delete" Button, the
relating SQL should be gathered but not yet be performed.
This would mean that several "INSERT" and or several "DELETE" statements
have to be collected.
As soon as the User hits the "Save" button, all those several SQL statements
have to be run.
As soon as the User hits the "Cancel" button, no SQL statement will be
performed, and all the collected SQL statements will be cleaned away.
I would sure be glad if someone could point me in the right direction.
Cheers
Marcel