PC Review


Reply
Thread Tools Rate Thread

database does not work

 
 
daniel west
Guest
Posts: n/a
 
      19th May 2011
the form i have created has first name, last name and then 20 check
box options. Also, i want to make sure that they do not pick more than
4 checkboxes. i need the submit button to check that not more than 4
checkboxes are checked, i want to save the names and choices, then
start a new entry and exit
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      19th May 2011
On Thu, 19 May 2011 11:50:21 -0700 (PDT), daniel west
<(E-Mail Removed)> wrote:

>the form i have created has first name, last name and then 20 check
>box options. Also, i want to make sure that they do not pick more than
>4 checkboxes. i need the submit button to check that not more than 4
>checkboxes are checked, i want to save the names and choices, then
>start a new entry and exit


Do you have a question, Daniel? You haven't asked one.

Your database needs to be based on Tables, not starting with your Form. A form
does not contain data; it's just a window, a tool to let you manage data in
tables.

And while your checkbox interface may be tempting - and even may be useful as
a user interface - it's a very poor choice of a data STORAGE structure. You
have (it seems) a classic many to many relationship: each Person has one or
more (up to four?) choices; each of your twenty Choices can be selected by
zero, one or more People. The proper design for this is three tables:

People
PersonID <primary key, perhaps an autonumber>
LastName
FirstName
<other biographical data as appropriate>

Options
OptionID <primary key, probably Number manually assigned 1 - 20>
Option <text, verbal description of this option>

Choices
PersonID <who made this choice>
OptionID <which choice did they make>

You can then design a Form to fit this data structure... rather than the other
way around.

Here are some resources that may help you through the thickets of relational
database design.

Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/acc...resources.html

The Access Web resources page:
http://www.mvps.org/access/resources/index.html

Roger Carlson's tutorials, samples and tips:
http://www.rogersaccesslibrary.com/

A free tutorial written by Crystal:
http://allenbrowne.com/casu-22.html

A video how-to series by Crystal:
http://www.YouTube.com/user/LearnAccessByCrystal

MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials

--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
 
daniel west
Guest
Posts: n/a
 
      21st May 2011
how do i setup a button that saves, quits and checks data.


On May 19, 4:31*pm, John W. Vinson
<jvinson@STOP_SPAM.WysardOfInfo.com> wrote:
> On Thu, 19 May 2011 11:50:21 -0700 (PDT), daniel west
>
> <daniel.a.wes...@gmail.com> wrote:
> >the form i have created has first name, last name and then 20 check
> >box options. Also, i want to make sure that they do not pick more than
> >4 checkboxes. i need the submit button to check that not more than 4
> >checkboxes are checked, i want to save the names and choices, then
> >start a new entry and exit

>
> Do you have a question, Daniel? You haven't asked one.
>
> Your database needs to be based on Tables, not starting with your Form. Aform
> does not contain data; it's just a window, a tool to let you manage data in
> tables.
>
> And while your checkbox interface may be tempting - and even may be useful as
> a user interface - it's a very poor choice of a data STORAGE structure. You
> have (it seems) a classic many to many relationship: each Person has one or
> more (up to four?) choices; each of your twenty Choices can be selected by
> zero, one or more People. The proper design for this is three tables:
>
> People
> * PersonID <primary key, perhaps an autonumber>
> * LastName
> * FirstName
> * <other biographical data as appropriate>
>
> Options
> * OptionID <primary key, probably Number manually assigned 1 - 20>
> * Option <text, verbal description of this option>
>
> Choices
> * PersonID <who made this choice>
> * OptionID <which choice did they make>
>
> You can then design a Form to fit this data structure... rather than the other
> way around.
>
> Here are some resources that may help you through the thickets of relational
> database design.
>
> Jeff Conrad's resources page:http://www.accessmvp.com/JConrad/acc...resources.html
>
> The Access Web resources page:http://www.mvps.org/access/resources/index.html
>
> Roger Carlson's tutorials, samples and tips:http://www.rogersaccesslibrary.com/
>
> A free tutorial written by Crystal:http://allenbrowne.com/casu-22.html
>
> A video how-to series by Crystal:http://www.YouTube.com/user/LearnAccessByCrystal
>
> MVP Allen Browne's tutorials:http://allenbrowne.com/links.html#Tutorials
>
> --
>
> * * * * * * *John W. Vinson [MVP]
> *Microsoft's replacements for these newsgroups:
> *http://social.msdn.microsoft.com/For...-US/accessdev/
> *http://social.answers.microsoft.com/.../en-US/addbuz/
> *and see alsohttp://www.utteraccess.com


 
Reply With Quote
 
David-W-Fenton
Guest
Posts: n/a
 
      21st May 2011
daniel west <(E-Mail Removed)> wrote in
news:34da2f92-b133-4f31-8d2f-(E-Mail Removed)
m:

> how do i setup a button that saves, quits and checks data.


Very carefully.

Next question?

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database does not work on xp Simon Microsoft Access 1 11th Nov 2008 01:41 AM
Database will not work on another pc? AJ Microsoft Access 5 5th Feb 2008 04:42 PM
Can'y get a new database to work =?Utf-8?B?UldTIEZs?= Microsoft Frontpage 5 5th Sep 2006 06:56 PM
Database Password does not work with Split Database Konrad Stoudenmire Microsoft Access Security 7 28th Jun 2004 10:24 PM
Not able to work on my database Linda Dias Microsoft Access Security 1 13th Dec 2003 01:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:37 AM.