473,387 Members | 1,502 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,387 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 1830
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.