473,396 Members | 1,935 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.

Simple Marina/Customs Declaration Database

CustomerTable CustomerTarrifTable TarrifTable WarrantTable

*CustomerID CustomerID ProductName *WarrantID
BoatType *CustomerTarrifID TarrifRate WarrantDate
CustomerName TarrifNo *TarrifNo TarrifNo
QuantitySold quantityPurchas
CIF CIF
Relationships

CustomerTable to CustomerTarrifTable = onetomany
TarrifTable to CustomerTarrifTable = onetomany
TarrifTable to WarrantTable = onetomany
I have set up the previously shown four tables and relationships in a
database for a boat marina to declare what they have bought and sold
to customs. Each product has a unique number called a tarrifNo. And
each time a product is bought from a supplier it is called a warrant
which is entered during the year. At the end of the year the purchases
made by a customer is entered into the database. CIF is a number which
varies for product and is a calculation on price quantity and various
other factors set by cusotoms.

I want to be able to produce a report that outputs all the products
ordered by there tarrifno and then underneath have the warrants made
during the year and then the details of the sellings to the customers

I assume this is done by a query that outputs the relevant details,
and the totals required be done in a report. So I need to produce a
query that outputs all the details in the database. I have tried to do
this using the design view in access but am not achieving the desired
results as I am getting the customertable and customertarriftable
details repeated for each warrant which I do not want. i.e I am
getting the boats purchase repeated. I think it requires an SQL query
but I have little knowledge of SQL and am struggling.

Can anyone offer me any help??

Regards

lloyd
Nov 12 '05 #1
1 1832
Lloyd Stevens wrote:
CustomerTable CustomerTarrifTable TarrifTable WarrantTable

*CustomerID CustomerID ProductName *WarrantID
BoatType *CustomerTarrifID TarrifRate WarrantDate
CustomerName TarrifNo *TarrifNo TarrifNo
QuantitySold quantityPurchas
CIF CIF
Relationships

CustomerTable to CustomerTarrifTable = onetomany
TarrifTable to CustomerTarrifTable = onetomany
TarrifTable to WarrantTable = onetomany
I have set up the previously shown four tables and relationships in a
database for a boat marina to declare what they have bought and sold
to customs. Each product has a unique number called a tarrifNo. And
each time a product is bought from a supplier it is called a warrant
which is entered during the year. At the end of the year the purchases
made by a customer is entered into the database. CIF is a number which
varies for product and is a calculation on price quantity and various
other factors set by cusotoms.

I want to be able to produce a report that outputs all the products
ordered by there tarrifno and then underneath have the warrants made
during the year and then the details of the sellings to the customers

I assume this is done by a query that outputs the relevant details,
and the totals required be done in a report. So I need to produce a
query that outputs all the details in the database. I have tried to do
this using the design view in access but am not achieving the desired
results as I am getting the customertable and customertarriftable
details repeated for each warrant which I do not want. i.e I am
getting the boats purchase repeated. I think it requires an SQL query
but I have little knowledge of SQL and am struggling.

Can anyone offer me any help??

Regards

lloyd


Whatever you are wanting to do seems pretty simple. I don't know what
boat purchase repreaded means. You don't mention what you want to
filter on. Do you want to print for one customer, all customers, for a
specific tarrifno

Open up your recordsource for the report. You should have all 4 tables
listed. THere should be a line from CustomerTable to
CustomerTarrifTable with the link on CustomerID. The
customerTarrifTable has a line linking the tarrifNo to the TarrifTable.
The tarrif table should have a relation line to the Warrant table
linked on WarrantID.

Drag the fields from the table you want to the columns.

From the ReportMenu, click View/Group&Sort. The first groups should be
CustomerID (or CustomerName). The next group is TarrifNo. In the group
for Tarrifno set header to Yes and put your detail from the
customertarrif &customer table there. In the detail row put the data
from tarrif and warrant table. You may want to separate tarriff from
warrant if the tarriff to warrant is a one to many relationship.
It might be easier to first create a query that links like above. Then
create a new report and use the report wizard and make sure you select
the groupings and sortings as you step through it. Once the wizard is
complete you can shift the fields into the order you want and check the
sort/group from th menu as you want.



Nov 12 '05 #2

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

Similar topics

3
by: Yog | last post by:
I am trying to update a date column in dataset from a textbox. When a date is changed in textbox, the dataset should reflect this, similarly when the textbox is cleared to null the dataset should...
20
by: Sam | last post by:
Hi I'm learning to code with C++ and wrote some very simple code. I think it's consistent with every rule but always got compiling errors that I don't understand. The code include 5 files as...
15
by: Alex | last post by:
could somebody tell me the difference between those two styles: function abc(var1, var2){ /* logic in here */ } and abc = function(var1, var2){ /* logic in here */ }; When / why would I...
0
by: Lloyd Stevens | last post by:
CustomerTable CustomerTarrifTable TarrifTable WarrantTable *CustomerID CustomerID ProductName *WarrantID BoatType *CustomerTarrifID TarrifRate WarrantDate CustomerName ...
44
by: Neil Cerutti | last post by:
In Rob Pike's style guide he urges the following: Simple rule: include files should never include include files. If instead they state (in comments or implicitly) what files they need...
5
by: Lasse Edsvik | last post by:
Hello Im trying to create a simple testclass that connects to a db on localhost and a method that returns a dataset. I get these errors: Unhandled Exception: System.InvalidOperationException:...
121
by: jacob navia | last post by:
Hi guys I have written this small parser to print out the functions defined in a C file. This is an example of parsing in C, that I want to add to my tutorial. Comments (and bug reports) are...
8
by: ftjonsson | last post by:
hello, I was wondering if anyone could tips me on what I am doing wrong when writing the following code: #include <iostream> using namespace std; int main () {
0
by: luigileldsak | last post by:
us customs patch http://cracks.12w.net F R E E
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.