The OrgID to OrgID is all you need for "uniqueness". The QtyID is just a
Qty transaction identifier. (more of a design issue, and not critical to
this problem)
While you're doing problem determination, why don't you remove the >2003
filtering, and let the sub records fall as they may.
>> > Unfortunately it seems I show the 2004 QtyAmount but then when I enter
>> > quantity data I overwrite 2004 rather than add 2005 ?
In your subform, do you see a "new" record at the end of the recordset?
If not, then I'm assuming that you really editing the 2004 record rather
than addin a new 2005 record. Please explain a bit more...
Al Camp
>I was thinking that with OrgId from the Org table in a one to many
> relationship with OrgId QtyYear in the quantity table there would be
[quoted text clipped - 70 lines]
>> > quantity data I overwrite 2004 rather than add 2005 ?
>> > Thanks
NigelB - 02 Aug 2005 20:10 GMT
Hello. I removed the >2003. I think the mistake I was making was I was not
putting the quantity data out in a subform. I had it with the organization
data in one form. Anyway with a subform for the quantity data, I do see a new
record at the end. I tried entering data for 2005 & then it said "You cannot
add or change a record because a related record is required in table
'TblOrg'" I was trying to add the 2005 quantity entry for organization 1.
> The OrgID to OrgID is all you need for "uniqueness". The QtyID is just a
> Qty transaction identifier. (more of a design issue, and not critical to
[quoted text clipped - 87 lines]
> >> > quantity data I overwrite 2004 rather than add 2005 ?
> >> > Thanks
NigelB - 03 Aug 2005 13:42 GMT
Hello again. I got around the error msg when adding the 2005 quantity data in
the subform by including OrgId from the quantity table in the form & entering
the appropriate OrgId.
However, I would rather the user not have to do that & have the OrgId pre
filled based on the record we are on at the time. Also be good to fill
QtyYear with the current year. In the quantity subform, do I have to show all
data for an organization, or is their a way to just show last years & allow
entry of this years data ? Thanks
> Hello. I removed the >2003. I think the mistake I was making was I was not
> putting the quantity data out in a subform. I had it with the organization
[quoted text clipped - 94 lines]
> > >> > quantity data I overwrite 2004 rather than add 2005 ?
> > >> > Thanks