473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can't figure out the right Table Design

I have been working this idea for a little over a week now and am not
convinced I have a good solution.

I have a little system that tracks Purchase Orders (POKey autonum,
PONum are both ont tblPOData, along with all the detail fields).

Recently the users asked if we could track Billing Information. "Of
course", I said.

Here's the thing:
We get an invoice that may be Freight for multiple POs, all on the same
invoice.

I need to have the users enter JUST the freight charge for the
individual PO, and attach it to that PO, so I can add up all the Actual
Freight charges to have TOTAL Actual Freight.

The users call the One Freight Bill, Multiple POs - Freigh FAK (Freight
of all Kinds).

One PO CAN also have freight on multiple FAK Invoices.

I have a button on the PO Update form that says "Freight". They press
the button and they can then enter all the freight for that PO. Works
fine.

They want, however, to "Identify" if the freight amount they're
entering is part of an FAK invoice (maybe I should use Invoice Type?)

They also want to enter the FAK Invoice Number, Freight Company (I'd
store the key), InvoiceDate and InvliceTotalAmt, so I can run reports
and say "Invoice 402 was for $1005, but you entered total freight on
POs for invoice 402 of $1010. Check your entries and correct" - or
whatever.

Here's what I have. I can't seem to figure out how to get the data and
relationships right, nor do I know how to have them enter the FAK info.
I thought if they choose "FAK" as invlice Type, show a popup that
would require them to enter the FAK invoice info? I'm lost.

tblFreightBill
freightBillKey - autonum
POKey - num
InvoiceNum - num
FreightCokey - num
BillingDate - date
FAKKey - number (I was thinking to use this to link to the other table?
Examine it - if 0, not an FAK?

tblFAK
FAKKey - autonum
InvoiceNum - num (would have to be the same as on the PO screen)
FreighCoKey - num (would have to be the same as on the PO screen for
the FAK portion - the PO can also have freight charged from another
company as well)
InvoiceAmt - currency
InvoiceDate - date (would have to be the same as on the PO screen)
Thanks - I appreciate any help. This is much more sophisticated than
anything I've done in my 6 months or so writing Access apps.

Sara

Jun 26 '06 #1
2 1294
You're going to need to track P.O. # and Invoice #. You can then find
multiple instances of either P.O. # or Invoice # by writing a Find
Duplicates query (use the wizard, it's easier that way).

Then do a dlookup on the DISTINCT numbers your query finds. This
should get you all the P.O. and Invoice numbers that have multiple
records associated with them.

Not an easy project for a n00b, you may want to write a process map and
just do one step at a time.
sara wrote:
I have been working this idea for a little over a week now and am not
convinced I have a good solution.

I have a little system that tracks Purchase Orders (POKey autonum,
PONum are both ont tblPOData, along with all the detail fields).

Recently the users asked if we could track Billing Information. "Of
course", I said.

Here's the thing:
We get an invoice that may be Freight for multiple POs, all on the same
invoice.

I need to have the users enter JUST the freight charge for the
individual PO, and attach it to that PO, so I can add up all the Actual
Freight charges to have TOTAL Actual Freight.

The users call the One Freight Bill, Multiple POs - Freigh FAK (Freight
of all Kinds).

One PO CAN also have freight on multiple FAK Invoices.

I have a button on the PO Update form that says "Freight". They press
the button and they can then enter all the freight for that PO. Works
fine.

They want, however, to "Identify" if the freight amount they're
entering is part of an FAK invoice (maybe I should use Invoice Type?)

They also want to enter the FAK Invoice Number, Freight Company (I'd
store the key), InvoiceDate and InvliceTotalAmt, so I can run reports
and say "Invoice 402 was for $1005, but you entered total freight on
POs for invoice 402 of $1010. Check your entries and correct" - or
whatever.

Here's what I have. I can't seem to figure out how to get the data and
relationships right, nor do I know how to have them enter the FAK info.
I thought if they choose "FAK" as invlice Type, show a popup that
would require them to enter the FAK invoice info? I'm lost.

tblFreightBill
freightBillKey - autonum
POKey - num
InvoiceNum - num
FreightCokey - num
BillingDate - date
FAKKey - number (I was thinking to use this to link to the other table?
Examine it - if 0, not an FAK?

tblFAK
FAKKey - autonum
InvoiceNum - num (would have to be the same as on the PO screen)
FreighCoKey - num (would have to be the same as on the PO screen for
the FAK portion - the PO can also have freight charged from another
company as well)
InvoiceAmt - currency
InvoiceDate - date (would have to be the same as on the PO screen)
Thanks - I appreciate any help. This is much more sophisticated than
anything I've done in my 6 months or so writing Access apps.

Sara


Jun 26 '06 #2
Thank you very much.

I'll start working on your suggestions right away. Please be patient;
this may take me a few days to get it. I'll post back with
questions/problems, for sure. BUt what you say makes sense, so maybe I
can do it?

Sara

ManningFan wrote:
You're going to need to track P.O. # and Invoice #. You can then find
multiple instances of either P.O. # or Invoice # by writing a Find
Duplicates query (use the wizard, it's easier that way).

Then do a dlookup on the DISTINCT numbers your query finds. This
should get you all the P.O. and Invoice numbers that have multiple
records associated with them.

Not an easy project for a n00b, you may want to write a process map and
just do one step at a time.
sara wrote:
I have been working this idea for a little over a week now and am not
convinced I have a good solution.

I have a little system that tracks Purchase Orders (POKey autonum,
PONum are both ont tblPOData, along with all the detail fields).

Recently the users asked if we could track Billing Information. "Of
course", I said.

Here's the thing:
We get an invoice that may be Freight for multiple POs, all on the same
invoice.

I need to have the users enter JUST the freight charge for the
individual PO, and attach it to that PO, so I can add up all the Actual
Freight charges to have TOTAL Actual Freight.

The users call the One Freight Bill, Multiple POs - Freigh FAK (Freight
of all Kinds).

One PO CAN also have freight on multiple FAK Invoices.

I have a button on the PO Update form that says "Freight". They press
the button and they can then enter all the freight for that PO. Works
fine.

They want, however, to "Identify" if the freight amount they're
entering is part of an FAK invoice (maybe I should use Invoice Type?)

They also want to enter the FAK Invoice Number, Freight Company (I'd
store the key), InvoiceDate and InvliceTotalAmt, so I can run reports
and say "Invoice 402 was for $1005, but you entered total freight on
POs for invoice 402 of $1010. Check your entries and correct" - or
whatever.

Here's what I have. I can't seem to figure out how to get the data and
relationships right, nor do I know how to have them enter the FAK info.
I thought if they choose "FAK" as invlice Type, show a popup that
would require them to enter the FAK invoice info? I'm lost.

tblFreightBill
freightBillKey - autonum
POKey - num
InvoiceNum - num
FreightCokey - num
BillingDate - date
FAKKey - number (I was thinking to use this to link to the other table?
Examine it - if 0, not an FAK?

tblFAK
FAKKey - autonum
InvoiceNum - num (would have to be the same as on the PO screen)
FreighCoKey - num (would have to be the same as on the PO screen for
the FAK portion - the PO can also have freight charged from another
company as well)
InvoiceAmt - currency
InvoiceDate - date (would have to be the same as on the PO screen)
Thanks - I appreciate any help. This is much more sophisticated than
anything I've done in my 6 months or so writing Access apps.

Sara


Jun 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: | last post by:
hi everyone, i was hoping someone could help me. the code below - in IE the menu options (text) are a couple of pixels too low and i cant move them up, and the form boxes are ok. in mozilla the...
1
by: laurakr | last post by:
I am trying to use a clear to get my bottom nav bar below the quote box on the right, but it isn't working. I would like the bottom edge of the quote box to "stick" to the footer nav bar but copy...
31
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
8
by: mlwerth | last post by:
Dear Access Group: This is the most basic and most embarrassing of questions, but I cannot find where to change the data type of a text field that I have in Access 2003 to a number field. I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.