Sandra said:
Uh oh, I thought we had this really nailed, but now I
have discovered a glitch. With this setup I cannot do a
new entry in the single view form because the Child and
Master fields have been changed from the PK of the table
of donations to the continuous subform.
Do you want these new records to become a "child" record of the continues
form?
Further, you user interface is going to be a bit confusing. You likely
should be displaying the contact, and have details of the contact display in
a sub-form (this is naturally how ms-access works).
As it is now, users would likely think that they can add records to the
continues form (and they can't). Worse, is when they go to add a record to
the single form, they may very well assume that this record is going to
belong to the CURRENTLY select record in the continuous sub-form. This is
going to be a source of confusing here.
You actually might be better off to turn off the navigation buttons on the
contacts form. I would make the add button LAUNCH another form (as model).
When the user is finished..they can close this form and return to your form.
(you can put some requery code in the close of this form to re-load the
sub-forms).
Private Sub NewRecord_Click()
On Error GoTo Err_NewRecord_Click
Forms!DonationsNew.Visible = True
Forms!DonationsNew.SetFocus
DoCmd.GoToRecord , , acNewRec
Yada, yada, yada...
But Access tells me it cannot find the form.
Remember, sub-forms on a form are simply controls. Each sub-form control can
have ANY form specify for it. You can have 10 sub-form controls on the SAME
form, and EACH sub-form control can be the SAME form! (that means the same
form would appear 10 times on the form as sub-forms). Now, which sub-form
are you referring to? (that is why I spent some time explain that sub-forms
are just controls on form, and the name of the control does NOT have to be
the same as the control).
So, in the above..you can go;
me.MySubFormContorl.Visible = true
Like I say...due to reasons of confusing the user...I would suggest that you
open a new form for data entry..and not try and "switch" that form on the
users (this will get confusing...since they see the details listing..and
will naturally assume a connection between the two).