473,386 Members | 1,668 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,386 software developers and data experts.

How would you design this MS Access database:

I kind of get the idea of databases, how the fields and keys work, but
Im not very sure about designing one... what should be a field,
etc. I've read that the design of the database is the most
important, so I thought Id get some inputs!

The database I wish to create will contain dozens of "Message"
types. These messages types will all have the same structure:

Each message has a 32 word "data" payload (unsigned 16 bit), and for
each of these data payloads, I would also like to associate a
Description string. Each data word can be modified from a vb
program, but initially I would like to set each of the 32 words for a
message to a default value. Finally, I would like to make sure that
there is a range check on the data itself so that it never
inadvertently gets set to something out of range.

So for example,

Message 1:
----------------
Data Payload & Default Val:
Description Range
Data word 0: 0x1234 "Header
Info" Valid (0x1200 - 0x1300)
Data word 1: 0x4445 "Mailbox
Source" Full Range
....
Data word 31: 0x8274
"Checksum" Full Range
So...

Would the database have 32 Fields Named Data 0, Data 1.. Data31? And
32 more fields for description and 32 more fields for Range? This
seems like too many fields.. perhaps,

Would the 32 words of Data be just one field?

In either case, I dont see how each description and default value will
get associated to a particular data word (0-31)?

Nov 12 '07 #1
1 1210
On Nov 12, 4:43 pm, benn...@hotmail.com wrote:
I kind of get the idea of databases, how the fields and keys work, but
Im not very sure about designing one... what should be a field,
etc. I've read that the design of the database is the most
important, so I thought Id get some inputs!

The database I wish to create will contain dozens of "Message"
types. These messages types will all have the same structure:

Each message has a 32 word "data" payload (unsigned 16 bit), and for
each of these data payloads, I would also like to associate a
Description string. Each data word can be modified from a vb
program, but initially I would like to set each of the 32 words for a
message to a default value. Finally, I would like to make sure that
there is a range check on the data itself so that it never
inadvertently gets set to something out of range.

So for example,

Message 1:
----------------
Data Payload & Default Val:
Description Range
Data word 0: 0x1234 "Header
Info" Valid (0x1200 - 0x1300)
Data word 1: 0x4445 "Mailbox
Source" Full Range
...
Data word 31: 0x8274
"Checksum" Full Range

So...

Would the database have 32 Fields Named Data 0, Data 1.. Data31? And
32 more fields for description and 32 more fields for Range? This
seems like too many fields.. perhaps,

Would the 32 words of Data be just one field?

In either case, I dont see how each description and default value will
get associated to a particular data word (0-31)?
I don't follow what you are trying to model, but see if this makes any
sense to you...

Rather than one table with many columns how about three tables (to
represent Data, Description, Range) with only a few columns each. One
field joins the message IDs, a second field additionally joins the
Words, and a third contains the actual data.

Nov 13 '07 #2

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

Similar topics

43
by: grz02 | last post by:
Hi, Im an experienced database+software designer and developer, but, unfortunately, anything to do with web-programming and web-systems designs is still a pretty new area to me... (been working...
1
by: Lane Beneke | last post by:
All, New to the list and a relative newbie to PostgreSQL. Please forgive stupid questions. Designing an application server for a work order processing (et al) database. I have a good handle...
6
by: Mike Wiseley | last post by:
We recently converted our department wide shared Access97 database to Access2K. We used to be able to open various reports in design mode and make changes to the design (or create new reports) even...
2
by: Pete | last post by:
Before I get started with the question, does anyone have a (single) good book recommendation for database design? Not an Access-specific book, but something geared toward helping me figure out...
1
by: E.U. | last post by:
Hi, I an using MS-Access in order to build a site. I have this item that can have upto 10 pictures (might have none) I want to design a dynamic table which has the ID of the item at the first...
2
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. ...
2
by: Matthew Hood | last post by:
My company has expressed a desire to convert an existing MS Access application to a full VB.NET application. My experience is with VB6 so I want to ask a few questions and get some input on the...
5
by: rdemyan via AccessMonster.com | last post by:
I have a need to add another field to all of my tables (over 150). Not data, but an actual field. Can I code this somehow. So the code presumabley would loop through all the tables, open each...
1
by: Farhaad Faaique | last post by:
Dears, how can i enable a from's design view when it is disabled? (the database doesn't have any passwords to be accessed but it has password for vba codes). thanks in advance, Farhaad
2
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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
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
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.