childrenfirst
Technical User
Hi,
I am not sure if it can be done. I have a form which shows several records. Users get to check the checkbox associated to each record if they want to delete the record. After users click on a command button on the form, the on click event is supposed to pass the ID number of any (can be none, one, or many) records to be deleted to a SQL stored procedure and the records will be deleted from SQL table.
The problem occurrs when users check multiple records to delete, how do I pass multiple values from vba Access to a single parameter in SQL stored procedure (this is just an idea and I am not sure exactly how to do it in vba... Is there something like dynamic SQL in vba?)? Do I need to turn all the values into a single string in vba and then break them apart in the stored procedure?
Thank you, thank you, thank you!
CF
"Are things getting tougher, or it's just my brain that does not seem to work well toward the end of the year?
I am not sure if it can be done. I have a form which shows several records. Users get to check the checkbox associated to each record if they want to delete the record. After users click on a command button on the form, the on click event is supposed to pass the ID number of any (can be none, one, or many) records to be deleted to a SQL stored procedure and the records will be deleted from SQL table.
The problem occurrs when users check multiple records to delete, how do I pass multiple values from vba Access to a single parameter in SQL stored procedure (this is just an idea and I am not sure exactly how to do it in vba... Is there something like dynamic SQL in vba?)? Do I need to turn all the values into a single string in vba and then break them apart in the stored procedure?
Thank you, thank you, thank you!
CF
"Are things getting tougher, or it's just my brain that does not seem to work well toward the end of the year?