R
rick
Hi all, I'm new and am very frustrated. I hope someone out there ca
answer this.
I have a form with about 10 unbound text boxes and about 20 optio
groups with 3 radio buttons each (yes, no, n/a). The text boxes,
just have the user enter in stuff, no biggie there... When the use
clicks on a "no" radio button (all are defaulted to "yes"), I have i
opening a subform that just has one text box, where the user will ente
in some more notes that will be added to the same record in th
database (subform closes when they are doen with it).
So here's what I thought would work (of course it doesn't):
1. On the main form's form_load section have a new record adde
(rst.Addnew)
2. Have them fill in the text boxes (validate them of course)
3. If a "no" button is selected, open the subform, accept the text an
edit the newly added record with this text (rst.Edit)
4. When all is done, have them click on Submit on the main form and i
they accept it, it would them update the record (rst.Update).
The problem is when the subform "edits", it just edits the first recor
in the table (it's like the rst.addnew code in the form_load i
ignored... because it does not add a new record). when it gets down t
the submit button code (main form), it blows up since I don't have th
rst.Addnew code there (remember, I thought I would put it in th
form_load section. I can't see how I can put it in the submit_butto
section and still capture the comments and put them in the same ne
record.
sorry to be so lengthy.. just seeing if someone wanted to tackle this
answer this.
I have a form with about 10 unbound text boxes and about 20 optio
groups with 3 radio buttons each (yes, no, n/a). The text boxes,
just have the user enter in stuff, no biggie there... When the use
clicks on a "no" radio button (all are defaulted to "yes"), I have i
opening a subform that just has one text box, where the user will ente
in some more notes that will be added to the same record in th
database (subform closes when they are doen with it).
So here's what I thought would work (of course it doesn't):
1. On the main form's form_load section have a new record adde
(rst.Addnew)
2. Have them fill in the text boxes (validate them of course)
3. If a "no" button is selected, open the subform, accept the text an
edit the newly added record with this text (rst.Edit)
4. When all is done, have them click on Submit on the main form and i
they accept it, it would them update the record (rst.Update).
The problem is when the subform "edits", it just edits the first recor
in the table (it's like the rst.addnew code in the form_load i
ignored... because it does not add a new record). when it gets down t
the submit button code (main form), it blows up since I don't have th
rst.Addnew code there (remember, I thought I would put it in th
form_load section. I can't see how I can put it in the submit_butto
section and still capture the comments and put them in the same ne
record.
sorry to be so lengthy.. just seeing if someone wanted to tackle this