> Hi I hope someone can help....
> I have a "BookingPayments" Table that I wish to redesign to be "normalized".
[quoted text clipped - 11 lines]
>
> Many Thanks in Anticipation...
> =?Utf-8?B?TGVl?= <Lee@discussions.microsoft.com> wrote in
Hello again
>> This is a standard many-to-many relationship:
>>
[quoted text clipped - 4 lines]
>> PaymentsMade(BookingNumber, PmtCode, Amount, DatePaid, Method,...)
>> Primary Key (BookingNumber, PmtCode)
> if I set it out this way there will be too many similar
> fields.
No: at the moment you have too many similar fields. The idea is to move
all these repeated columns into repeated rows in a tall thin table.
> As it stands the payments table is related to the booking
> table by booking reference but surely I shouldn't have to have a
> seperate table for each payment.
No, not a separate table: it's a separate record for each payment, all in
one table.
> I really am stuck on this one because
> I seem blind to the answer. Are there any samples I could look at
> anywhere that would allow for multiple payments to be entered per ID?
This really is just a plain, straightforward many-to-many relationship.
Don't get too hung up on the "there are ten payments" argument because
within weeks of going into production, someone will want an eleventh one.
Have a look at the Northwind database to see how many-to-many
relationships work.
All the best
Tim F
Lee - 07 May 2005 10:30 GMT
Hi again!
Thanks for being patient with me! It suddenly came to me how to do it! I
feel stupid that I wasn't seeing it before but now my table is as follows:
PaymentID(PK)
BookingReference
Payment
Date
This is now a subform in a BookingPayments Form so the BookingReference
relate to each other and allows multiple payments.
Thanks again for helping!
> > =?Utf-8?B?TGVl?= <Lee@discussions.microsoft.com> wrote in
>
[quoted text clipped - 36 lines]
>
> Tim F
Tim Ferguson - 07 May 2005 16:17 GMT
=?Utf-8?B?TGVl?= <Lee@discussions.microsoft.com> wrote in news:E588FE90-
BF0E-4822-AC79-2B88633BE7B2@microsoft.com:
> PaymentID(PK)
> BookingReference
> Payment
> Date
> Thanks again for helping!
Glad to help...
Tim F