Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - simple stock card
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

simple stock card

 Post Reply Post Reply
Author
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Topic: simple stock card
    Posted: 07 April 2003 at 12:20am

Once again this is about my inventory system.

Date              IN        OUT       Balance

                                            20

2003/04/01     5                      25

2003/04/04                 5          20

2003/04/20                 10        10

2003/04/29     3                      13



So, I got 2 recordset

1. rs_stock_receiving (for IN column)
2. rs_stock_issue (for OUT colum)

The sort is from the beginning of the month until end of the month.

I got the first balance column field right but total up the all the same stock code plus all stock receiving minus stock issue

Balance = (addition of all stock which received before the selected month) - (addition of all stock which issued out before the selected month

Problem is to get the first record which is the earliest and loop the 2 tables until end.

So, in this situation, what is the best to do? Many thanks

Back to Top
Auritania View Drop Down
Newbie
Newbie


Joined: 09 April 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auritania Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2003 at 2:15pm
Can you make a single new recordset based on a query of the joined tables?
Back to Top
Auritania View Drop Down
Newbie
Newbie


Joined: 09 April 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auritania Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2003 at 2:30pm
Is it possible to restructure your tables? It would seem that 1 table would be able to accomplish your inventory fairly well.
Back to Top
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2003 at 7:49pm

I think it is fine already Auritania. Right now, I managed to get all the records displayed correctly except the last record.

Code is in http://www.htmlforums.com/attachment.php?s=&postid=149347

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.