Help needed in order to create a register of stocks in a company. In
accordance with local laws I need to give each individual share a
number. I have accomplished this by establishing three tables (se
below) then I run a query giving me a running total, which give me the
first stock in the batch purchased by an individual, then I use this
number and add the number of shares in order to find the number of the
individuals' last share.
So far everything looks fine – BUT- this is changed when the
individuals start trading stocks. This isn't a regular event, but I
want to find a way to handle it if and when it occurs. Due to the way
I have it now, the shares before the ones traded keep their correct
numbers, but the ones after are assigned new numbers.
What I need is a way to remove the traded amount from the
Number_of_Share s in a post and recalculate the correct number for this
post without changing Start_no and End_no for the other shares in the
table…
In addition, I need to place the Start_no and End_no for the removed
shares as a new entry in the table TblNumber_of_sh ares
Any advice on how to do this would be greatly appreciated! I realize
that I might need a different way to solve how I assign individual
nubers in order to make this work, but this is how I've acomplished it
so far.
I'am fairly new to access and VB programming, so please be gentle with
me :-0
Thanks,
Sten Koll
About the database ( Pasted from an earlier post…)
Tables
Name:
TblName_ID (Primary key)
Firstname
Lastname
TblNew_Issues_S hares
Issue_ID (Primary key)
Date
Number_of_share s (for each new issue)
TblNumber_of_sh ares
Transaction_Cou nter
Name_ID
Issue_ID
Number_of_Share s
Start_no and End_no
accordance with local laws I need to give each individual share a
number. I have accomplished this by establishing three tables (se
below) then I run a query giving me a running total, which give me the
first stock in the batch purchased by an individual, then I use this
number and add the number of shares in order to find the number of the
individuals' last share.
So far everything looks fine – BUT- this is changed when the
individuals start trading stocks. This isn't a regular event, but I
want to find a way to handle it if and when it occurs. Due to the way
I have it now, the shares before the ones traded keep their correct
numbers, but the ones after are assigned new numbers.
What I need is a way to remove the traded amount from the
Number_of_Share s in a post and recalculate the correct number for this
post without changing Start_no and End_no for the other shares in the
table…
In addition, I need to place the Start_no and End_no for the removed
shares as a new entry in the table TblNumber_of_sh ares
Any advice on how to do this would be greatly appreciated! I realize
that I might need a different way to solve how I assign individual
nubers in order to make this work, but this is how I've acomplished it
so far.
I'am fairly new to access and VB programming, so please be gentle with
me :-0
Thanks,
Sten Koll
About the database ( Pasted from an earlier post…)
Tables
Name:
TblName_ID (Primary key)
Firstname
Lastname
TblNew_Issues_S hares
Issue_ID (Primary key)
Date
Number_of_share s (for each new issue)
TblNumber_of_sh ares
Transaction_Cou nter
Name_ID
Issue_ID
Number_of_Share s
Start_no and End_no
Comment