PC Review


Reply
Thread Tools Rate Thread

how do I attach a value to a check box in access 2007?

 
 
janelgirl
Guest
Posts: n/a
 
      20th Apr 2010
In a database, there are several items in a single row that may or may not be
listed as yes/no in a checkbox format. When I transfer the information from
said database into a report, I filter the results to list only the items that
were checked "yes". Is it possible that the items that were checked "yes"
could return a value from a query on the report? For example, in the
database, I checked "flowers", "card", and "candies" for John Doe. A
seperate query has the individual costs that it takes for "flowers" or "card"
or "candies" . Those queries have their own totals (which may change as I
alter the info to reflect changing costs for materials). When I select "yes"
for "flowers" in the database, how do I get the report to show the total from
the query? Is this possible? I am new at access 2007 (and in general), so
please use basic language. Thanks in advance for any help that you may
provide.
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      21st Apr 2010
On Tue, 20 Apr 2010 14:02:01 -0700, janelgirl
<(E-Mail Removed)> wrote:

>In a database, there are several items in a single row that may or may not be
>listed as yes/no in a checkbox format. When I transfer the information from
>said database into a report, I filter the results to list only the items that
>were checked "yes". Is it possible that the items that were checked "yes"
>could return a value from a query on the report? For example, in the
>database, I checked "flowers", "card", and "candies" for John Doe. A
>seperate query has the individual costs that it takes for "flowers" or "card"
>or "candies" . Those queries have their own totals (which may change as I
>alter the info to reflect changing costs for materials). When I select "yes"
>for "flowers" in the database, how do I get the report to show the total from
>the query? Is this possible? I am new at access 2007 (and in general), so
>please use basic language. Thanks in advance for any help that you may
>provide.


Your table design is incorrect.

What will you do when you add another possible item? Redesign your table,
rewrite all your queries, redesign your forms, recreate all your reports?
OUCH!!!

If each person may get many different items, and each item may be taken by
many different people, a proper table structure uses *three tables*:
Individuals; Items; ItemsTaken. The third table would have links to the
primary key of the first two tables.

you might want to look at some of the tutorials here; Crystal's "Normalization
101" would speak to this issue:

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]
 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      21st Apr 2010
A check box will return a value of -1 (minus one) or 0 (zero) as it is
checked or not checked.
Your design is wrong. Based on what you posted you need three tables.
tblOrder --
OrderID - Autonumber - primary key
OrderDate - DateTime
OrderFor -
DeliverDate
OrderedBy

tblItems --
ItemID - Autonumber - primary key
ItemName
Size
Color
Price -

tblOrderItem --
OrderItemID - Autonumber - primary key
OrderID - number - foreign key
ItemID - number - foreign key
QTY

Use a form/subform for Order/Items with Master/Child links set on OrderID.
Use a combo to select items to be on the subform.

--
Build a little, test a little.


"janelgirl" wrote:

> In a database, there are several items in a single row that may or may not be
> listed as yes/no in a checkbox format. When I transfer the information from
> said database into a report, I filter the results to list only the items that
> were checked "yes". Is it possible that the items that were checked "yes"
> could return a value from a query on the report? For example, in the
> database, I checked "flowers", "card", and "candies" for John Doe. A
> seperate query has the individual costs that it takes for "flowers" or "card"
> or "candies" . Those queries have their own totals (which may change as I
> alter the info to reflect changing costs for materials). When I select "yes"
> for "flowers" in the database, how do I get the report to show the total from
> the query? Is this possible? I am new at access 2007 (and in general), so
> please use basic language. Thanks in advance for any help that you may
> provide.

 
Reply With Quote
 
janelgirl
Guest
Posts: n/a
 
      28th Apr 2010
Thanks - this helps!

"KARL DEWEY" wrote:

> A check box will return a value of -1 (minus one) or 0 (zero) as it is
> checked or not checked.
> Your design is wrong. Based on what you posted you need three tables.
> tblOrder --
> OrderID - Autonumber - primary key
> OrderDate - DateTime
> OrderFor -
> DeliverDate
> OrderedBy
>
> tblItems --
> ItemID - Autonumber - primary key
> ItemName
> Size
> Color
> Price -
>
> tblOrderItem --
> OrderItemID - Autonumber - primary key
> OrderID - number - foreign key
> ItemID - number - foreign key
> QTY
>
> Use a form/subform for Order/Items with Master/Child links set on OrderID.
> Use a combo to select items to be on the subform.
>
> --
> Build a little, test a little.
>
>
> "janelgirl" wrote:
>
> > In a database, there are several items in a single row that may or may not be
> > listed as yes/no in a checkbox format. When I transfer the information from
> > said database into a report, I filter the results to list only the items that
> > were checked "yes". Is it possible that the items that were checked "yes"
> > could return a value from a query on the report? For example, in the
> > database, I checked "flowers", "card", and "candies" for John Doe. A
> > seperate query has the individual costs that it takes for "flowers" or "card"
> > or "candies" . Those queries have their own totals (which may change as I
> > alter the info to reflect changing costs for materials). When I select "yes"
> > for "flowers" in the database, how do I get the report to show the total from
> > the query? Is this possible? I am new at access 2007 (and in general), so
> > please use basic language. Thanks in advance for any help that you may
> > provide.

 
Reply With Quote
 
janelgirl
Guest
Posts: n/a
 
      28th Apr 2010
Thanks, this helps!

"John W. Vinson" wrote:

> On Tue, 20 Apr 2010 14:02:01 -0700, janelgirl
> <(E-Mail Removed)> wrote:
>
> >In a database, there are several items in a single row that may or may not be
> >listed as yes/no in a checkbox format. When I transfer the information from
> >said database into a report, I filter the results to list only the items that
> >were checked "yes". Is it possible that the items that were checked "yes"
> >could return a value from a query on the report? For example, in the
> >database, I checked "flowers", "card", and "candies" for John Doe. A
> >seperate query has the individual costs that it takes for "flowers" or "card"
> >or "candies" . Those queries have their own totals (which may change as I
> >alter the info to reflect changing costs for materials). When I select "yes"
> >for "flowers" in the database, how do I get the report to show the total from
> >the query? Is this possible? I am new at access 2007 (and in general), so
> >please use basic language. Thanks in advance for any help that you may
> >provide.

>
> Your table design is incorrect.
>
> What will you do when you add another possible item? Redesign your table,
> rewrite all your queries, redesign your forms, recreate all your reports?
> OUCH!!!
>
> If each person may get many different items, and each item may be taken by
> many different people, a proper table structure uses *three tables*:
> Individuals; Items; ItemsTaken. The third table would have links to the
> primary key of the first two tables.
>
> you might want to look at some of the tutorials here; Crystal's "Normalization
> 101" would speak to this issue:
>
> 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]
> .
>

 
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
Access 2007 Spell Check JamesJ Microsoft Access Forms 2 24th Feb 2010 11:18 AM
No Spell Check in Access 2007 JamesJ Microsoft Access Form Coding 29 5th Oct 2009 02:38 AM
Is spell check available in Access 2007? susanr5416 Microsoft Access 4 9th Dec 2008 02:29 PM
Re: Spell check problem in Access 2007 Stuart McCall Microsoft Access Form Coding 0 15th Jul 2008 12:25 AM
Is there a way to directly attach emails or email attach to access d Microsoft Access 1 6th Jul 2004 02:22 AM


Features
 

Advertising
 

Newsgroups
 


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