Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / June 2006

Tip: Looking for answers? Try searching our database.

Asking too much?? Form-subform based on 4 tables, one is a junction table.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sam - 27 Jun 2006 19:10 GMT
I have a problem with creating a form from tables involving a junction
table. What I learned from this group is: Create a form based on one
one-table and a subform based one many-table, and have the combobox in
the subform be based on query on the-other one-table.

My situation:

tblCustomer one-many tblSales
tblSales one-many tblReceipt_Allocation
tblReceipt one-many tblReceipt_Allocation

One receipt from a customer can be used to pay more than one invoice.
And one invoice can be paid by more than one payment/receipt.

I have created a form frmReceipt (recordsource: tblReceipt) and a
subform fsubReceipt (recordsource: tblReceipt_Allocation).

In the subform, a combobox is used to pick out invoices that will be
paid. Then the user will enter the payment amount for each invoice,
manually splitting the payment amount (tblReceipt doesn't have a field
for total receipt amount).

Currently this combobox is not filtered by customer. Instead, it will
list all open/not fully paid sales. So, a payment can pay for sales of
more than one customer, which isn't right.

What I would like the user be able to do when receiving a payment is:
Open a form, pick a customer, enter payment info (date etc.), pick from
a list of open invoices, allocate the payment to one or more invoices.

Could somebody please help. Thank you in advance.

-Sam
Sam - 28 Jun 2006 05:37 GMT
No replies? Anybody? Suggestion? Comment?

-Sam

> I have a problem with creating a form from tables involving a junction
> table. What I learned from this group is: Create a form based on one
[quoted text clipped - 29 lines]
>
> -Sam
Larry Linson - 30 Jun 2006 04:34 GMT
Basically, you need a Subform for tblReceiptAllocation, in which you select
a Sale using a Combo Box and enter an Amount/Percentage to allocate. The
Sale Combo Box should have Customer as a criteria in its Row Source.

Perhaps someone else will jump in with some details.

 Larry Linson
 Microsoft Access MVP

> No replies? Anybody? Suggestion? Comment?
>
[quoted text clipped - 33 lines]
>>
>> -Sam
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.