473,606 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New Database Help

Jo
Hi there,

I'm Jo and it's the first time I've posted here. I'm in process of creating
a database at work and have come a little unstuck.....I'm a bit of a novice
and wondered if anyone could help. I work in a library and send out dual
language books to babies of dual or other nationality.
The db is to be used for logging a range of book titles and numbers ordered
and books sent out to individuals. I am trying to work out a way of keeping
track of how many of each title I have in stock so I can see when to order
more. Am I making sense so far?

One table has the following fields:
Book Title (e.g. Jungle Animals (Albanian) or Jungle Animals (Gujarati))
Date Ordered
No. Ordered

Another table (and related form) has details of books sent out to
individuals:
Name
Address
etc
Book Title
Date Sent Out

I am struggling to find a way - if there is one - of linking the info so to
keep track of stock numbers. I have tried various queries and exporting
data to Excel but got in a real muddle. There's probably a really simple
way, but I'm not that experienced that I can work it out!
I would appreciate any advice.
Thanks,
Jo
Mar 22 '07 #1
47 2851
"Jo" <jo@NOSPAM.stal lan.plus.comwro te in message
news:46******** **************@ ptn-nntp-reader02.plus.n et...

Hi Jo,

Could you adapt or get some pointers from this?

http://office.microsoft.com/en-gb/te...1033&av=ZAC000

Regards,
Keith.
www.keithwilby.com
Mar 22 '07 #2
Hi Jo, and welome. Hope you are able to derive good help here.

If this is your first database, the first step is to set up a data structure
(tables) that has all the right connections (one to many relations) between
them.

You might have more than one copy of a particular title. Presumably you want
to be able to track each one individually, e.g. this particular copy of
"Jungle Animals" was borrowed by Jo Smith on 2/28, and so she should have it
back to us by 3/28. If so, for each book title, you can have many instances
of the book: a one-to-many relation between Titles and Books. And you lend
out a book (not merely a title.) That means these tables:
Title table (one record for each title/book published)
TitleID AutoNumber primary key
Title Text name of the book
ISBN Text
YearPublished Number
...

Book table (one record for each copy you buy)
BookID AutoNumber primary key
TitleID Number relates to Title.TitleID
DateAcquired Date/Time when you got this book
...

Now, one person can borrow from you multiple times. Therefore you have a
one-to-many relation between borrower and loans. These tables:

Borrower table (one record for each person)
BorrowerID AutoNumber primary key
Surname Text
FirstName Text
Address Text
City Text
Zip Text
...

Loan table (one record each time someone borrows books):
LoanID AutoNumber primary key
BorrowerID Number relates to Borrower.Borrow erID
LoanDate Date/Time when taken out.

When someone borrows books, they often borrow more than one at at time. Any
loan therfore has multiple line-items: a one-to-many relation between Loan
and loan details. So the books borrowed in a loan go into a related table:

LoanDetail table (line items for a loan):
LoanDetailID AutoNumber primary key
LoanID Number which loan this is a line item of)
BookID Number the book that was borrowed
DueDate Date/Time when this book is due back (blank until
returned.)

That's the basic start. Creating the right tables and relationships is
absolutely crucial to getting a useful database.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jo" <jo@NOSPAM.stal lan.plus.comwro te in message
news:46******** **************@ ptn-nntp-reader02.plus.n et...
Hi there,

I'm Jo and it's the first time I've posted here. I'm in process of
creating a database at work and have come a little unstuck.....I'm a bit
of a novice and wondered if anyone could help. I work in a library and
send out dual language books to babies of dual or other nationality.
The db is to be used for logging a range of book titles and numbers
ordered and books sent out to individuals. I am trying to work out a way
of keeping track of how many of each title I have in stock so I can see
when to order more. Am I making sense so far?

One table has the following fields:
Book Title (e.g. Jungle Animals (Albanian) or Jungle Animals
(Gujarati))
Date Ordered
No. Ordered

Another table (and related form) has details of books sent out to
individuals:
Name
Address
etc
Book Title
Date Sent Out

I am struggling to find a way - if there is one - of linking the info so
to keep track of stock numbers. I have tried various queries and
exporting data to Excel but got in a real muddle. There's probably a
really simple way, but I'm not that experienced that I can work it out!
I would appreciate any advice.
Thanks,
Jo
Mar 22 '07 #3
Jo,

Just an "endorsemen t" here. Allen is the Access MVPs' MVP on inventory-type
applications -- he's the one to whom we turn for samples and advice on this
subject.

Larry Linson
Microsoft Access MVP
Mar 22 '07 #4
Jo

"Allen Browne" <Al*********@Se eSig.Invalidwro te in message
news:46******** *************** @per-qv1-newsreader-01.iinet.net.au ...
Hi Jo, and welome. Hope you are able to derive good help here.

If this is your first database, the first step is to set up a data
structure (tables) that has all the right connections (one to many
relations) between them.

You might have more than one copy of a particular title. Presumably you
want to be able to track each one individually, e.g. this particular copy
of "Jungle Animals" was borrowed by Jo Smith on 2/28, and so she should
have it back to us by 3/28. If so, for each book title, you can have many
instances of the book: a one-to-many relation between Titles and Books.
And you lend out a book (not merely a title.) That means these tables:
Title table (one record for each title/book published)
TitleID AutoNumber primary key
Title Text name of the book
ISBN Text
YearPublished Number
...

Book table (one record for each copy you buy)
BookID AutoNumber primary key
TitleID Number relates to Title.TitleID
DateAcquired Date/Time when you got this book
...

Now, one person can borrow from you multiple times. Therefore you have a
one-to-many relation between borrower and loans. These tables:

Borrower table (one record for each person)
BorrowerID AutoNumber primary key
Surname Text
FirstName Text
Address Text
City Text
Zip Text
...

Loan table (one record each time someone borrows books):
LoanID AutoNumber primary key
BorrowerID Number relates to Borrower.Borrow erID
LoanDate Date/Time when taken out.

When someone borrows books, they often borrow more than one at at time.
Any loan therfore has multiple line-items: a one-to-many relation between
Loan and loan details. So the books borrowed in a loan go into a related
table:

LoanDetail table (line items for a loan):
LoanDetailID AutoNumber primary key
LoanID Number which loan this is a line item of)
BookID Number the book that was borrowed
DueDate Date/Time when this book is due back (blank
until returned.)

That's the basic start. Creating the right tables and relationships is
absolutely crucial to getting a useful database.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jo" <jo@NOSPAM.stal lan.plus.comwro te in message
news:46******** **************@ ptn-nntp-reader02.plus.n et...
>Hi there,

I'm Jo and it's the first time I've posted here. I'm in process of
creating a database at work and have come a little unstuck.....I'm a bit
of a novice and wondered if anyone could help. I work in a library and
send out dual language books to babies of dual or other nationality.
The db is to be used for logging a range of book titles and numbers
ordered and books sent out to individuals. I am trying to work out a way
of keeping track of how many of each title I have in stock so I can see
when to order more. Am I making sense so far?

One table has the following fields:
Book Title (e.g. Jungle Animals (Albanian) or Jungle Animals
(Gujarati))
Date Ordered
No. Ordered

Another table (and related form) has details of books sent out to
individuals:
Name
Address
etc
Book Title
Date Sent Out

I am struggling to find a way - if there is one - of linking the info so
to keep track of stock numbers. I have tried various queries and
exporting data to Excel but got in a real muddle. There's probably a
really simple way, but I'm not that experienced that I can work it out!
I would appreciate any advice.
Thanks,
Jo
Thanks Allen, but I think I may have misled you here and made it sound more
complicated... by mentioning that I work in a library. The books I am
sending out are for keeps - one book will go to one baby and that's it.
The only relationship I have set up at the moment is Book Title.

Kind Regards,
Jo
Mar 23 '07 #5
If you are quite certain that there will *never* be more than one book per
person, then the tables you suggested make good sense.

Just don't use Name for a field. Nearly everything in Access has a Name
property, and so Access will get it confused with the Name of your form etc.
Use separate fields for Surname and FirstName.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jo" <jo@NOSPAM.stal lan.plus.comwro te in message
news:46******** **************@ ptn-nntp-reader02.plus.n et...
Thanks Allen, but I think I may have misled you here and made it sound
more complicated...b y mentioning that I work in a library. The books I am
sending out are for keeps - one book will go to one baby and that's it.
The only relationship I have set up at the moment is Book Title.

"Allen Browne" <Al*********@Se eSig.Invalidwro te in message
news:46******** *************** @per-qv1-newsreader-01.iinet.net.au ...
>Hi Jo, and welome. Hope you are able to derive good help here.

If this is your first database, the first step is to set up a data
structure (tables) that has all the right connections (one to many
relations) between them.

You might have more than one copy of a particular title. Presumably you
want to be able to track each one individually, e.g. this particular copy
of "Jungle Animals" was borrowed by Jo Smith on 2/28, and so she should
have it back to us by 3/28. If so, for each book title, you can have many
instances of the book: a one-to-many relation between Titles and Books.
And you lend out a book (not merely a title.) That means these tables:
Title table (one record for each title/book published)
TitleID AutoNumber primary key
Title Text name of the book
ISBN Text
YearPublished Number
...

Book table (one record for each copy you buy)
BookID AutoNumber primary key
TitleID Number relates to Title.TitleID
DateAcquired Date/Time when you got this book
...

Now, one person can borrow from you multiple times. Therefore you have a
one-to-many relation between borrower and loans. These tables:

Borrower table (one record for each person)
BorrowerID AutoNumber primary key
Surname Text
FirstName Text
Address Text
City Text
Zip Text
...

Loan table (one record each time someone borrows books):
LoanID AutoNumber primary key
BorrowerID Number relates to Borrower.Borrow erID
LoanDate Date/Time when taken out.

When someone borrows books, they often borrow more than one at at time.
Any loan therfore has multiple line-items: a one-to-many relation between
Loan and loan details. So the books borrowed in a loan go into a related
table:

LoanDetail table (line items for a loan):
LoanDetailID AutoNumber primary key
LoanID Number which loan this is a line item of)
BookID Number the book that was borrowed
DueDate Date/Time when this book is due back (blank
until returned.)

That's the basic start. Creating the right tables and relationships is
absolutely crucial to getting a useful database.

"Jo" <jo@NOSPAM.stal lan.plus.comwro te in message
news:46******* *************** @ptn-nntp-reader02.plus.n et...
>>Hi there,

I'm Jo and it's the first time I've posted here. I'm in process of
creating a database at work and have come a little unstuck.....I'm a bit
of a novice and wondered if anyone could help. I work in a library and
send out dual language books to babies of dual or other nationality.
The db is to be used for logging a range of book titles and numbers
ordered and books sent out to individuals. I am trying to work out a
way of keeping track of how many of each title I have in stock so I can
see when to order more. Am I making sense so far?

One table has the following fields:
Book Title (e.g. Jungle Animals (Albanian) or Jungle Animals
(Gujarati))
Date Ordered
No. Ordered

Another table (and related form) has details of books sent out to
individuals :
Name
Address
etc
Book Title
Date Sent Out

I am struggling to find a way - if there is one - of linking the info so
to keep track of stock numbers. I have tried various queries and
exporting data to Excel but got in a real muddle. There's probably a
really simple way, but I'm not that experienced that I can work it out!
I would appreciate any advice.
Mar 23 '07 #6
On Mar 22, 8:05 pm, "Larry Linson" <boun...@localh ost.notwrote:
Just an "endorsemen t" here. Allen is the Access MVPs'MVPon inventory-type
applications -- he's the one to whom we turn for samples and advice on this
subject.

Larry Linson
Microsoft AccessMVP
Just to redress the balance slightly, I find Allen's design wanting. I
worked for about a year in a library, including stock taking and
invigilation, and a constant user of public and private libraries and
I genuinely think such a simplistic design to be unworkable.

Considerations of surrogates aside, to key a table of books on
autonumber and not ISBN would IMO quickly lead to data integrity
corruption. Autonumber (random? incrementing?) for BorrowerID is not
practical either because you would need to expose it (hint: my local
public library *cards* -- yes, as a borrower I have more than one card
-- have 14 character alphanumeric key and incorporate a bar code).

It doesn't matter how small the library is, this a data model IMO too
complex for a newsgroup post. Then there's populating the database...

My best advice would be to take an honest, open-minded look at this
article:

http://en.wikipedia.org/wiki/Not_Invented_Here

and for the OP to seriously consider purchasing some ready-made
software.

No disrepect to Allen for having a go, though; we all like a
challenge :)

Jamie.

--
Mar 23 '07 #7
Jo

"onedaywhen " <ja**********@x smail.comwrote in message
news:11******** **************@ b75g2000hsg.goo glegroups.com.. .
On Mar 22, 8:05 pm, "Larry Linson" <boun...@localh ost.notwrote:
>Just an "endorsemen t" here. Allen is the Access MVPs'MVPon
inventory-type
applications -- he's the one to whom we turn for samples and advice on
this
subject.

Larry Linson
Microsoft AccessMVP

Just to redress the balance slightly, I find Allen's design wanting. I
worked for about a year in a library, including stock taking and
invigilation, and a constant user of public and private libraries and
I genuinely think such a simplistic design to be unworkable.

Considerations of surrogates aside, to key a table of books on
autonumber and not ISBN would IMO quickly lead to data integrity
corruption. Autonumber (random? incrementing?) for BorrowerID is not
practical either because you would need to expose it (hint: my local
public library *cards* -- yes, as a borrower I have more than one card
-- have 14 character alphanumeric key and incorporate a bar code).

It doesn't matter how small the library is, this a data model IMO too
complex for a newsgroup post. Then there's populating the database...

My best advice would be to take an honest, open-minded look at this
article:

http://en.wikipedia.org/wiki/Not_Invented_Here

and for the OP to seriously consider purchasing some ready-made
software.

No disrepect to Allen for having a go, though; we all like a
challenge :)

Jamie.

--
It's a lot simpler than that. Forget the library bit. I'll explain a bit
further.....I work for a national project called Bookstart which encourages
parent and carers to share books with their babies from a very young age.
Each baby, when attending their 7-9 month health check receives a gift of a
bag containing books, other goodies and a questionnaire (which the parent
fills out). Questionnaires are sent back to me and I use the information
for evaluation purposes. One of the optional questions relates to
ethnicity. If the baby is of dual or other nationality then I have the
pleasure of sending them out another free book, this time in their own
language.
I need to keep track of the numbers of books of each language that I hold in
stock and how many I have given out so I know when to re-order. That is
basically it.
Is there away I can send out a dummy of my database so far for someone to
have a look at and advise me. I think I'm on the right track with the field
names etc. I have set up a query which lists the titles I have sent out,
and on what dates, but I need a way of counting up how many of each type
etc.

Jo
>

Mar 24 '07 #8
"onedaywhen " <ja**********@x smail.comwrote
Just to redress the balance slightly, I find Allen's design wanting.
Thanks so much for sharing your knowledge with us.

Mar 25 '07 #9
Jo
I feel that everyone has given up on me without really understanding what I
was trying to get at (see my posting of 24/3 - that explains it better).
Everyone seems to be trying to make this more compplicated than it really
is! Oh, and is it the norm to top-post in this group, only I was reprimanded
numerous times in other groups for doing so?

Jo
"Jo" <jo@NOSPAM.stal lan.plus.comwro te in message
news:46******** **************@ ptn-nntp-reader02.plus.n et...
Hi there,

I'm Jo and it's the first time I've posted here. I'm in process of
creating a database at work and have come a little unstuck.....I'm a bit
of a novice and wondered if anyone could help. I work in a library and
send out dual language books to babies of dual or other nationality.
The db is to be used for logging a range of book titles and numbers
ordered and books sent out to individuals. I am trying to work out a way
of keeping track of how many of each title I have in stock so I can see
when to order more. Am I making sense so far?

One table has the following fields:
Book Title (e.g. Jungle Animals (Albanian) or Jungle Animals
(Gujarati))
Date Ordered
No. Ordered

Another table (and related form) has details of books sent out to
individuals:
Name
Address
etc
Book Title
Date Sent Out

I am struggling to find a way - if there is one - of linking the info so
to keep track of stock numbers. I have tried various queries and
exporting data to Excel but got in a real muddle. There's probably a
really simple way, but I'm not that experienced that I can work it out!
I would appreciate any advice.
Thanks,
Jo

Mar 26 '07 #10

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

Similar topics

3
3343
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading about sql database and sql server, specially this article: http://www.aspfaq.com/show.asp?id=2195 will someone help me understand: 1. with *SQL Server*, do i keep my current Access 2000 database and ASP pages?
4
4013
by: George Stout | last post by:
First off I do not know alot about writing queries to an Access Database from an ASP page. This is why I need help. I have an Events database for 6 colleges in our metro area. On the homepage I have to display the next event for each college. That would give me 6 events listed on the page. I have been trying to figure out how to write a query statement in my ASP page to select just the most current event from each college. I have not had...
19
2082
by: nospammmer | last post by:
Hello group, I have a rather general but interesting inquiry that is related to PHP and I hope this is the appropriate place to post it. I'm looking for a way to improve dramatically the performance of my PHP application. The application is getting slow as it is taking more load. It is performing a very high number of queries to a database, and I believe that this is taking up most of the ressources.
6
7330
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database agent could not be started to service a request, or was terminated as a result of a database system shutdown or a force command.
0
2260
by: Alex | last post by:
Hi all, I've been running a db2 V8.1 databasle to store my radius server accounting info for a *long* time and have never had any problems with it. Last week we had a power outage in our computer room and since then I've been having problems with one of the 3 db2 instances running on my server ( BTW 8.1 FP4). The databases on the other 2 instances work fine but as far as the radius server one is concerned whenever i try
5
3002
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my homework for me.. I am merely asking for help, perhaps pointers as to where to begin.. I've never used access before.. I'm rather cluey when it comes to
12
2765
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed both the iis and sql server in a single machine. Not too long ago, the machine had some hardware problems, and management has decided to purchase new servers, for both asp.net and sql server.
9
3823
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web site for a small club I belong to and one of the features I would like to include is the ability to allow users to upload image files. unfortunately the servers web root www folder only allows READ and EXECUTE permissions, which makes it...
18
9125
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft page "How to: Connect to Data in an Access Database"
12
3925
by: grace | last post by:
i am wondering why my database retrieval becomes too slow...we set up a new server (ubuntu, breezy badger) machine where we transferred all our files from the old server.. Our new server uses Asus p5pe-vm motherboard and an Intel Pentium D 3.0Ghz processor, compared to the old one where we uses asrock motherboard and AMD Duron. Both has the same version of mysql installed... To summarized, both machine has the same configuration except...
0
8045
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7981
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8127
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8320
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5470
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3952
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2458
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1574
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.