Checkbox update record

Is it possible to have a master page with a checkbox, that can update a record if selected?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineNo oneCommented:
Hi vonfranzken,

Yes, it is possible.

Could you post a little more detail about what you are trying to do and which server model you're doing it with?
vonfranzkenAuthor Commented:
Sure in fact here is a copy of the error I get when I try to it says.

Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/musicforall/newsroom/news_master.asp, line 267

Line 267 is this:
<input type="hidden" name="MM_recordId" value="<%= Recordset1.Fields.Item("id").Value %>">

This is put in when I apply the update record to the checkbox via the master list.

vonfranzkenAuthor Commented:
Im sorry asp
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Jason C. LevineNo oneCommented:
It sounds like the Primary key value is not set in the form.  DW's update behavior requires the unique ID number of the record to be updated to be present in the form.  How are you setting that?
vonfranzkenAuthor Commented:
Well Im not Im just listing from lets say recordset1 a master list of records which resides in form1 with an added checkbox
I then applied an update behavior to the checkbox, and used the same recordset which lists them.
I then have a javascript submit form behavior applied to the checbox to submit the update in the event it is checked or un-checked.

I think its having a hard time distinguishing which record to update via the master list.

Jason C. LevineNo oneCommented:

Right.  You are misusing the update record behavior.  The built-in behavior requires one primary key per form in order to work correctly.

If you output a bunch of records in a repeat region and stick that region inside of a form, you can't use the update record behavior.

What you can do is put the form tags INSIDE the repeat region (in a table cell, say) and your method should work.  It may require you to do a little hand coding, though.

The other way to do this with only one form is to have all values submit as an array and then hand code the update behavior so that it steps through the array and runs the sql update for each record in the array.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.