Okay, the form frmNewPurchases has a "Record Source" of "qryNewPurchases".
The subform has a "Source Object" of "Query.qryHistPurchases". When the form
is in Form View the form is fine for entering purchases, but the subform just
sits there statically showing the contents of the tblPurchases table.
Do I even have the tables structured correctly? I have a table tblBuyers
for the people who are entering in their purchases, and the tblPurchases
where the purchases are stored. Should I somehow be separating the purchases
into two tables so that the form and subform are not looking at the same
table?
floprock
Your subform is currently Unbound, which explains the error message you're
receiving. Set the SourceObject property of the subform *control* to the
name of the form it represents. Then double-click on the subform to enable
editing the subform *itself*.
Confused? I know I first was, but when you drag a form from the Forms
window onto a main form in Design view, the subform becomes a control in the
main form, just like a textbox or combo box control. When you click on the
subform in design view of the main form, you are accessing this control, two
of whose properties are LinkMasterFields and LinkChildFields, along with the
SourceObject property, which tells Access which form the control is
associated with. If SourceObject is set to something other than a form name,
it is Unbound, and you cannot therefore set the linking fields.
Regarding your second question, although it's a little unusual, I don't see
anything wrong with showing additional detail records based on the same table
to which the main form is bound.
Good luck.
Sprinks
> Okay, the form frmNewPurchases has a "Record Source" of "qryNewPurchases".
> The subform has a "Source Object" of "Query.qryHistPurchases". When the form
[quoted text clipped - 49 lines]
> > > > > Thanks!
> > > > > floprock
floprock - 25 Jan 2006 21:37 GMT
All right!! This crazy thing DOES work!! Thanks a ton for all of your help!
Have a great day!
floprock
> Your subform is currently Unbound, which explains the error message you're
> receiving. Set the SourceObject property of the subform *control* to the
[quoted text clipped - 70 lines]
> > > > > > Thanks!
> > > > > > floprock