Hi all,
I'm trying to modify a record (in this case the name associated with the record) to a new name selected by the user in a combo box. Right now I have Single Form with a subform in datasheet view. One of the fields of the subform is a checkbox which allows the user to select which record(s) they want to change the name of. On the single form I have a combo box that allows the user to select the name they want to replace the selected record with.
I think VB is the way to go becuase I've tried Macro's and the setValue option and I have trouble with logic and only modifying the values that have been selected.
I think I want to do something like
Inventory is the table where the records are, and Name is the field I want to update. Delete is the name of the field of the checkbox. I think my methods are right, just my syntax is off. I'm not too sure with VB.
Thanks for all your help!
I'm trying to modify a record (in this case the name associated with the record) to a new name selected by the user in a combo box. Right now I have Single Form with a subform in datasheet view. One of the fields of the subform is a checkbox which allows the user to select which record(s) they want to change the name of. On the single form I have a combo box that allows the user to select the name they want to replace the selected record with.
I think VB is the way to go becuase I've tried Macro's and the setValue option and I have trouble with logic and only modifying the values that have been selected.
I think I want to do something like
Code:
Inventory.Name WHERE Delete = Forms!Switch_Name!Name;
Thanks for all your help!
Comment