PC Review


Reply
Thread Tools Rate Thread

Displaying numbers

 
 
=?Utf-8?B?U3lkaW91cw==?=
Guest
Posts: n/a
 
      22nd Dec 2006
Lets see if I can word this correctly.
I am trying to do some breakdown of product full load qtys but want it
displayed like I did long division.

example:
1 pallet = 50 pcs.
101 pcs were shipped.
Answer 2.02 displayed as 2 full loads and 1 pc.
I don't want a decimal. I want it displayed like long divison.
How do I go about doing this? Can anyone help?
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      22nd Dec 2006
Use the Integer Divisor (backslash) to get the whole number, and Mod to get
the remainder:

=Str([Pieces] \ [PalletSize]) & " full load(s) and " & Str([Pieces] Mod
PalletSize]) & " piece(s)"

--
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.

"Sydious" <(E-Mail Removed)> wrote in message
news:138657FE-263F-41C9-B7DB-(E-Mail Removed)...
> Lets see if I can word this correctly.
> I am trying to do some breakdown of product full load qtys but want it
> displayed like I did long division.
>
> example:
> 1 pallet = 50 pcs.
> 101 pcs were shipped.
> Answer 2.02 displayed as 2 full loads and 1 pc.
> I don't want a decimal. I want it displayed like long divison.
> How do I go about doing this? Can anyone help?



 
Reply With Quote
 
=?Utf-8?B?U3lkaW91cw==?=
Guest
Posts: n/a
 
      28th Dec 2006
OK awsome. That is what I was looking for. But now I have run into another
problem.
This allowes me to break it down by each part.
Each order has multipal parts.
So Lets say:
Order #1
Part #1 3 loads 2 pcs
Part #2 1 load
Part #3 5 loads 8 pcs.

I want to total these up. so it would display:
9 Loads and 10 pcs.
I try to use the SUM fuction in the query but it comes up with a error saying
"Data type mismatch in criteria expression"
How would I go about adding up these totals?
I know this is probably very easy. I am just not thinking at the right level.
Thanks.

"Allen Browne" wrote:

> Use the Integer Divisor (backslash) to get the whole number, and Mod to get
> the remainder:
>
> =Str([Pieces] \ [PalletSize]) & " full load(s) and " & Str([Pieces] Mod
> PalletSize]) & " piece(s)"
>
> --
> 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.
>
> "Sydious" <(E-Mail Removed)> wrote in message
> news:138657FE-263F-41C9-B7DB-(E-Mail Removed)...
> > Lets see if I can word this correctly.
> > I am trying to do some breakdown of product full load qtys but want it
> > displayed like I did long division.
> >
> > example:
> > 1 pallet = 50 pcs.
> > 101 pcs were shipped.
> > Answer 2.02 displayed as 2 full loads and 1 pc.
> > I don't want a decimal. I want it displayed like long divison.
> > How do I go about doing this? Can anyone help?

>
>
>

 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      28th Dec 2006
If you want to sum them, you will need to break it into 2 fields in your
query.

In query design, type this into a fresh column in the Field row:
Loads: [Pieces] \ [PalletSize]
Then in the next row:
Pieces: [Pieces] Mod PalletSize]

Since these are now numeric fields, you should be able to sum them.

--
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.

"Sydious" <(E-Mail Removed)> wrote in message
news:7EB8FA94-E705-42AF-AD39-(E-Mail Removed)...
> OK awsome. That is what I was looking for. But now I have run into another
> problem.
> This allowes me to break it down by each part.
> Each order has multipal parts.
> So Lets say:
> Order #1
> Part #1 3 loads 2 pcs
> Part #2 1 load
> Part #3 5 loads 8 pcs.
>
> I want to total these up. so it would display:
> 9 Loads and 10 pcs.
> I try to use the SUM fuction in the query but it comes up with a error
> saying
> "Data type mismatch in criteria expression"
> How would I go about adding up these totals?
> I know this is probably very easy. I am just not thinking at the right
> level.
> Thanks.
>
> "Allen Browne" wrote:
>
>> Use the Integer Divisor (backslash) to get the whole number, and Mod to
>> get
>> the remainder:
>>
>> =Str([Pieces] \ [PalletSize]) & " full load(s) and " & Str([Pieces]
>> Mod
>> PalletSize]) & " piece(s)"
>>
>> "Sydious" <(E-Mail Removed)> wrote in message
>> news:138657FE-263F-41C9-B7DB-(E-Mail Removed)...
>> > Lets see if I can word this correctly.
>> > I am trying to do some breakdown of product full load qtys but want it
>> > displayed like I did long division.
>> >
>> > example:
>> > 1 pallet = 50 pcs.
>> > 101 pcs were shipped.
>> > Answer 2.02 displayed as 2 full loads and 1 pc.
>> > I don't want a decimal. I want it displayed like long divison.
>> > How do I go about doing this? Can anyone help?


 
Reply With Quote
 
=?Utf-8?B?U3lkaW91cw==?=
Guest
Posts: n/a
 
      28th Dec 2006
Thanks for your help. I can pick up all the hair I pulled out trying to get
this done. THANKS again!
Have a great new years!

"Sydious" wrote:

> Lets see if I can word this correctly.
> I am trying to do some breakdown of product full load qtys but want it
> displayed like I did long division.
>
> example:
> 1 pallet = 50 pcs.
> 101 pcs were shipped.
> Answer 2.02 displayed as 2 full loads and 1 pc.
> I don't want a decimal. I want it displayed like long divison.
> How do I go about doing this? Can anyone help?

 
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
Displaying Numbers lmgraham0629 Microsoft Access 2 5th May 2008 05:33 PM
Displaying -ve numbers =?Utf-8?B?UmFq?= Microsoft Excel Misc 2 3rd Jun 2007 04:56 PM
Displaying Numbers =?Utf-8?B?UGF0X0h1Z2hlc19Db20=?= Microsoft Frontpage 6 28th Mar 2007 03:48 PM
displaying numbers Ritchie Microsoft Excel Programming 1 12th Mar 2004 07:15 PM
Numbers not displaying =?Utf-8?B?YWxhbg==?= Microsoft Access 1 19th Jan 2004 05:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:49 PM.