Saturday, April 23, 2011

Microsoft Access Database Design - Step 3 of 7: Data Design Field for Your Microsoft Access Database

From your reports, bankrupt down into natural units that order be the foundation for your Access database design. In simplified terms, an orders database system might consist of frequent tables but a core process like some order transaction could be made up from five tables (being of the kind which described further in this article).

The Data Design (your fields) should sudden motion to get a little easier to thorough this task providing you have worn out enough time on the previous brace steps of this series.

This step handles reaped ground table that has been sketched aloud, a list of fields that command be defined and their best matching and qualifying data types.

For example, Lets say you be in actual possession of determined that there are five tables because an example 'Order' document which are:

Customers

Orders

Order Details

Products

Shippers

Take every one table and expand on this to think best all the fields making sure the elementary field will act as the single value and ID for a trace. So the 'Customers' table first listed tract of land might be called 'Customer ID'.

You need to capture all the fields that you rely upon will make up the profile of a buyer across all reports bearing in disposition not all fields will be required in the place of all reports.

As part of the database normalisation conjecture, consider fields to handle the smallest element of data that you would normally wait for to use. For example, the ingenuity of a company would not subsist stored in one field called 'Address' bound instead across five fields ('Address Line 1', 'Address Line 2', 'City', 'Postcode' and 'Country'. This determination help in grouping, sorting, filtering and far-seeing records at a later point.

For reaped ground field listed, decide on the most excellent suited data type as it will drive the use of that surface when reporting on it later steady. So for example, will the 'Quantity' surface need to be a number? Do you intend to adjust with it at some point?

A battle-~ may appear as numeric like the 'Tel No.' realm but would probably be stored for the re~on that the default 'Text' data type supposing that not of course you intend to make a calculation with it!

Choosing the best matched given conditions type will also start to validate the set a ~ on you can enter. So you be assured of a 'Number' data type cannot take . a non-numeric character. The 'Date/Time' premises type validates only date and time (including vault years too!).

So, an example of the Orders ~t may have a list of the following fields and premises types with sizes where applicable:

Field: Order ID, Data Type: Number (Long Integer)

Field: Customer ID, Data Type: Text (5)

Field: Shipper ID, Data Type: Number (Long Integer)

Field: Order Date, Data Type: Date/Time

Field: Required Date, Data Type: Date/Time

Field: Shipped Date, Data Type: Date/Time

Field: Order Amount, Data Type: Currency

Field: Freight Amount, Data Type: Currency

Field: Despatched, Data Type: Yes/No

Field: Invoiced, Data Type: Date/Time

The atop of table gives you the idea and other fields would with appearance of truth come to light during this step resolution process.

Repeat this for each table-company and double-check that all fields receive been covered against each report.

No comments: