PC Review


Reply
Thread Tools Rate Thread

Calculation in Orders Management Database

 
 
=?Utf-8?B?TmF0ZUpTMzQ1?=
Guest
Posts: n/a
 
      25th Oct 2007
I downloaded the Orders Management Database Template from the Microsoft
Website. When I entered in the price, it didn't add up the total cost of the
item price times the number of items being ordered minus the discount. How
would I get it to calculate the total for each item?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2VuIFNoZXJpZGFu?=
Guest
Posts: n/a
 
      25th Oct 2007
I've not seen the template in question, but I'd imagine it works similarly to
the sample Northwind database. In the order details subform in that the
ExtendedPrice control is based on a computed column in the underlying query
using the following expression:

CCur([Order Details].UnitPrice*[Quantity]*(1-[Discount])/100)*100

It could also be done as a computed control in the form by making the
control's ControlSource property:

=CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100

and for the Order Sub-Total control:

=Sum(CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100)

Ken Sheridan
Stafford, England

"NateJS345" wrote:

> I downloaded the Orders Management Database Template from the Microsoft
> Website. When I entered in the price, it didn't add up the total cost of the
> item price times the number of items being ordered minus the discount. How
> would I get it to calculate the total for each item?


 
Reply With Quote
 
=?Utf-8?B?TmF0aGFuIFN3YXJ0emxhbmRlcg==?=
Guest
Posts: n/a
 
      30th Oct 2007
I tried to add the equation to the subform control, but it didn't work. It
just said error. I'm not sure what else to do. Calculating things in access
is my weak spot. Here is the link to that database:
http://office.microsoft.com/en-us/te...CT101426031033

If you can check it out and see what I might be able to change, that would
be cool.

Thanks

"Ken Sheridan" wrote:

> I've not seen the template in question, but I'd imagine it works similarly to
> the sample Northwind database. In the order details subform in that the
> ExtendedPrice control is based on a computed column in the underlying query
> using the following expression:
>
> CCur([Order Details].UnitPrice*[Quantity]*(1-[Discount])/100)*100
>
> It could also be done as a computed control in the form by making the
> control's ControlSource property:
>
> =CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100
>
> and for the Order Sub-Total control:
>
> =Sum(CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100)
>
> Ken Sheridan
> Stafford, England
>
> "NateJS345" wrote:
>
> > I downloaded the Orders Management Database Template from the Microsoft
> > Website. When I entered in the price, it didn't add up the total cost of the
> > item price times the number of items being ordered minus the discount. How
> > would I get it to calculate the total for each item?

>

 
Reply With Quote
 
=?Utf-8?B?S2VuIFNoZXJpZGFu?=
Guest
Posts: n/a
 
      30th Oct 2007
I'm in a Catch 22 situation here (or Catch 2002 to be more accurate). I have
Office 2002 installed, but the link you posted is to an Access 2003 file.
There is an Access 2000 equivalent, which should run under Access 2002, but
if I try to download that it tells me that Access 2000 is not found on my
machine!

What bound controls do you have in the subform? The subform in the
Northwind sample database has controls UnitPrice, Quantity and Discount,
bound in each case to fields of the same name. It may simply be that you
need to change the control names in the expression if yours have different
names.

Ken Sheridan
Stafford, England

"Nathan Swartzlander" wrote:

> I tried to add the equation to the subform control, but it didn't work. It
> just said error. I'm not sure what else to do. Calculating things in access
> is my weak spot. Here is the link to that database:
> http://office.microsoft.com/en-us/te...CT101426031033
>
> If you can check it out and see what I might be able to change, that would
> be cool.
>
> Thanks
>
> "Ken Sheridan" wrote:
>
> > I've not seen the template in question, but I'd imagine it works similarly to
> > the sample Northwind database. In the order details subform in that the
> > ExtendedPrice control is based on a computed column in the underlying query
> > using the following expression:
> >
> > CCur([Order Details].UnitPrice*[Quantity]*(1-[Discount])/100)*100
> >
> > It could also be done as a computed control in the form by making the
> > control's ControlSource property:
> >
> > =CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100
> >
> > and for the Order Sub-Total control:
> >
> > =Sum(CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100)
> >
> > Ken Sheridan
> > Stafford, England
> >
> > "NateJS345" wrote:
> >
> > > I downloaded the Orders Management Database Template from the Microsoft
> > > Website. When I entered in the price, it didn't add up the total cost of the
> > > item price times the number of items being ordered minus the discount. How
> > > would I get it to calculate the total for each item?

> >


 
Reply With Quote
 
=?Utf-8?B?TmF0aGFuIFN3YXJ0emxhbmRlcg==?=
Guest
Posts: n/a
 
      31st Oct 2007
That's a bummer. What is the link for the 2002 equivalent? I'll check that
out.

"Ken Sheridan" wrote:

> I'm in a Catch 22 situation here (or Catch 2002 to be more accurate). I have
> Office 2002 installed, but the link you posted is to an Access 2003 file.
> There is an Access 2000 equivalent, which should run under Access 2002, but
> if I try to download that it tells me that Access 2000 is not found on my
> machine!
>
> What bound controls do you have in the subform? The subform in the
> Northwind sample database has controls UnitPrice, Quantity and Discount,
> bound in each case to fields of the same name. It may simply be that you
> need to change the control names in the expression if yours have different
> names.
>
> Ken Sheridan
> Stafford, England
>
> "Nathan Swartzlander" wrote:
>
> > I tried to add the equation to the subform control, but it didn't work. It
> > just said error. I'm not sure what else to do. Calculating things in access
> > is my weak spot. Here is the link to that database:
> > http://office.microsoft.com/en-us/te...CT101426031033
> >
> > If you can check it out and see what I might be able to change, that would
> > be cool.
> >
> > Thanks
> >
> > "Ken Sheridan" wrote:
> >
> > > I've not seen the template in question, but I'd imagine it works similarly to
> > > the sample Northwind database. In the order details subform in that the
> > > ExtendedPrice control is based on a computed column in the underlying query
> > > using the following expression:
> > >
> > > CCur([Order Details].UnitPrice*[Quantity]*(1-[Discount])/100)*100
> > >
> > > It could also be done as a computed control in the form by making the
> > > control's ControlSource property:
> > >
> > > =CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100
> > >
> > > and for the Order Sub-Total control:
> > >
> > > =Sum(CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100)
> > >
> > > Ken Sheridan
> > > Stafford, England
> > >
> > > "NateJS345" wrote:
> > >
> > > > I downloaded the Orders Management Database Template from the Microsoft
> > > > Website. When I entered in the price, it didn't add up the total cost of the
> > > > item price times the number of items being ordered minus the discount. How
> > > > would I get it to calculate the total for each item?
> > >

>

 
Reply With Quote
 
=?Utf-8?B?S2VuIFNoZXJpZGFu?=
Guest
Posts: n/a
 
      31st Oct 2007
There is no version specific to Access 2002, but I found that if you scroll
down the page after getting the message that Access 2000 isn't installed
there is a button which allows you to download that version anyway.
Unfortunately it doesn't take us any further as the order details subform
doesn't even have a control for the 'extended price'. Also the subform is
based directly on a table, so, unlike in Northwind, there is no computed
column in a query.

You might like to repost your original question so someone who can open the
2003 version can download take a look at it. While the expression should be
straightforward enough, without being able to see exactly what the relevant
columns in the table are its difficult for me to give you a categorical
answer.

Ken Sheridan
Stafford, England

"Nathan Swartzlander" wrote:

> That's a bummer. What is the link for the 2002 equivalent? I'll check that
> out.
>
> "Ken Sheridan" wrote:
>
> > I'm in a Catch 22 situation here (or Catch 2002 to be more accurate). I have
> > Office 2002 installed, but the link you posted is to an Access 2003 file.
> > There is an Access 2000 equivalent, which should run under Access 2002, but
> > if I try to download that it tells me that Access 2000 is not found on my
> > machine!
> >
> > What bound controls do you have in the subform? The subform in the
> > Northwind sample database has controls UnitPrice, Quantity and Discount,
> > bound in each case to fields of the same name. It may simply be that you
> > need to change the control names in the expression if yours have different
> > names.
> >
> > Ken Sheridan
> > Stafford, England
> >
> > "Nathan Swartzlander" wrote:
> >
> > > I tried to add the equation to the subform control, but it didn't work. It
> > > just said error. I'm not sure what else to do. Calculating things in access
> > > is my weak spot. Here is the link to that database:
> > > http://office.microsoft.com/en-us/te...CT101426031033
> > >
> > > If you can check it out and see what I might be able to change, that would
> > > be cool.
> > >
> > > Thanks
> > >
> > > "Ken Sheridan" wrote:
> > >
> > > > I've not seen the template in question, but I'd imagine it works similarly to
> > > > the sample Northwind database. In the order details subform in that the
> > > > ExtendedPrice control is based on a computed column in the underlying query
> > > > using the following expression:
> > > >
> > > > CCur([Order Details].UnitPrice*[Quantity]*(1-[Discount])/100)*100
> > > >
> > > > It could also be done as a computed control in the form by making the
> > > > control's ControlSource property:
> > > >
> > > > =CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100
> > > >
> > > > and for the Order Sub-Total control:
> > > >
> > > > =Sum(CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100)
> > > >
> > > > Ken Sheridan
> > > > Stafford, England
> > > >
> > > > "NateJS345" wrote:
> > > >
> > > > > I downloaded the Orders Management Database Template from the Microsoft
> > > > > Website. When I entered in the price, it didn't add up the total cost of the
> > > > > item price times the number of items being ordered minus the discount. How
> > > > > would I get it to calculate the total for each item?
> > > >

> >


 
Reply With Quote
 
=?Utf-8?B?TmF0aGFuIFN3YXJ0emxhbmRlcg==?=
Guest
Posts: n/a
 
      1st Nov 2007
Thanks, I'll do that

"Ken Sheridan" wrote:

> There is no version specific to Access 2002, but I found that if you scroll
> down the page after getting the message that Access 2000 isn't installed
> there is a button which allows you to download that version anyway.
> Unfortunately it doesn't take us any further as the order details subform
> doesn't even have a control for the 'extended price'. Also the subform is
> based directly on a table, so, unlike in Northwind, there is no computed
> column in a query.
>
> You might like to repost your original question so someone who can open the
> 2003 version can download take a look at it. While the expression should be
> straightforward enough, without being able to see exactly what the relevant
> columns in the table are its difficult for me to give you a categorical
> answer.
>
> Ken Sheridan
> Stafford, England
>
> "Nathan Swartzlander" wrote:
>
> > That's a bummer. What is the link for the 2002 equivalent? I'll check that
> > out.
> >
> > "Ken Sheridan" wrote:
> >
> > > I'm in a Catch 22 situation here (or Catch 2002 to be more accurate). I have
> > > Office 2002 installed, but the link you posted is to an Access 2003 file.
> > > There is an Access 2000 equivalent, which should run under Access 2002, but
> > > if I try to download that it tells me that Access 2000 is not found on my
> > > machine!
> > >
> > > What bound controls do you have in the subform? The subform in the
> > > Northwind sample database has controls UnitPrice, Quantity and Discount,
> > > bound in each case to fields of the same name. It may simply be that you
> > > need to change the control names in the expression if yours have different
> > > names.
> > >
> > > Ken Sheridan
> > > Stafford, England
> > >
> > > "Nathan Swartzlander" wrote:
> > >
> > > > I tried to add the equation to the subform control, but it didn't work. It
> > > > just said error. I'm not sure what else to do. Calculating things in access
> > > > is my weak spot. Here is the link to that database:
> > > > http://office.microsoft.com/en-us/te...CT101426031033
> > > >
> > > > If you can check it out and see what I might be able to change, that would
> > > > be cool.
> > > >
> > > > Thanks
> > > >
> > > > "Ken Sheridan" wrote:
> > > >
> > > > > I've not seen the template in question, but I'd imagine it works similarly to
> > > > > the sample Northwind database. In the order details subform in that the
> > > > > ExtendedPrice control is based on a computed column in the underlying query
> > > > > using the following expression:
> > > > >
> > > > > CCur([Order Details].UnitPrice*[Quantity]*(1-[Discount])/100)*100
> > > > >
> > > > > It could also be done as a computed control in the form by making the
> > > > > control's ControlSource property:
> > > > >
> > > > > =CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100
> > > > >
> > > > > and for the Order Sub-Total control:
> > > > >
> > > > > =Sum(CCur([UnitPrice]*[Quantity]*(1-[Discount])/100)*100)
> > > > >
> > > > > Ken Sheridan
> > > > > Stafford, England
> > > > >
> > > > > "NateJS345" wrote:
> > > > >
> > > > > > I downloaded the Orders Management Database Template from the Microsoft
> > > > > > Website. When I entered in the price, it didn't add up the total cost of the
> > > > > > item price times the number of items being ordered minus the discount. How
> > > > > > would I get it to calculate the total for each item?
> > > > >
> > >

>

 
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
Help with Template-Orders Management Database =?Utf-8?B?cmhvbmRhbmRicnlvbg==?= Microsoft Access 0 29th Jan 2007 07:14 PM
Orders Management Database Template =?Utf-8?B?Qnlyb243MjA=?= Microsoft Access 1 20th Aug 2006 05:40 AM
Orders Management Database in Microsoft Access =?Utf-8?B?VGFtbXk=?= Microsoft Access 1 10th Jan 2006 05:40 PM
Orders Management Database template =?Utf-8?B?a3JvYg==?= Microsoft Access Reports 1 14th Dec 2005 12:59 AM
Orders Management Database 2000 =?Utf-8?B?VGFyYQ==?= Microsoft Access Forms 1 26th Sep 2005 08:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.