Hello,
I am using a formview to insert data into two tables. When I click insert the first part of my form is bound so the records are inserted automatically and I have an autonumber field generating a primary key in MS Access. I can grab the new primary key field in the formview iteminserted event, but I can't seem to figure out how to loop through my checkboxlist and insert those items into my second table.
The basic idea is table1 has PrimaryKeyField which gets generated on the iteminsert. Table2 then needs to insert PrimaryKeyField and my CheckBoxValueFields each as a separate record.
I think my problem has something to do with the checkboxlist being part of the insertitemtemplate and I am not calling it properly to retrieve the values.
Thanks in advance for your assistance.
I am using a formview to insert data into two tables. When I click insert the first part of my form is bound so the records are inserted automatically and I have an autonumber field generating a primary key in MS Access. I can grab the new primary key field in the formview iteminserted event, but I can't seem to figure out how to loop through my checkboxlist and insert those items into my second table.
The basic idea is table1 has PrimaryKeyField which gets generated on the iteminsert. Table2 then needs to insert PrimaryKeyField and my CheckBoxValueFields each as a separate record.
I think my problem has something to do with the checkboxlist being part of the insertitemtemplate and I am not calling it properly to retrieve the values.
Thanks in advance for your assistance.