TheInsider
Programmer
Hi,
I have a parent form with a subform in datasheet view. I'd like to be able to select multiple rows in the datasheet subform and then change a value on each of those rows. I'm willing to use the continuous forms view instead of datasheet if it makes a difference.
Here's an example of what I'm doing. The parent form has a textbox called txtValue and a command button. When the user clicks the command button, I want to change the value of a particular column in each of the selected rows to the value in the parent form's textbox.
I realize this is a "hack" replacement for a basic SQL Update, but I must do it this way for reasons I won't bother going into here.
Can someone point me towards a VBA code snippet that will let me determine which rows in the datasheet or continuous form are selected?
Thanks!
I have a parent form with a subform in datasheet view. I'd like to be able to select multiple rows in the datasheet subform and then change a value on each of those rows. I'm willing to use the continuous forms view instead of datasheet if it makes a difference.
Here's an example of what I'm doing. The parent form has a textbox called txtValue and a command button. When the user clicks the command button, I want to change the value of a particular column in each of the selected rows to the value in the parent form's textbox.
I realize this is a "hack" replacement for a basic SQL Update, but I must do it this way for reasons I won't bother going into here.
Can someone point me towards a VBA code snippet that will let me determine which rows in the datasheet or continuous form are selected?
Thanks!