K
Kurosagi85
i need help and its urgent...
i have created a table with fields: ItemNo, ItemName, IncomingStocks
and also DateReceived.
The IncomingStocks and DateReceived are volatile. it is expected to
change several times during the life of a record
I have tried the simple append query
but it keep on copying the whole records instead of the 'ONE' record
that i change..
What code do i need to use to have it append only the record the user
has
touched? I have created a append query, but this will append all the
records
from the main table to history table.
INSERT INTO ItemHistory ( ItemNo, ItemName, DateReceived,
IncomingStocks )
SELECT Item.ItemNo, Item.ItemName, Item.DateReceived,
Item.IncomingStocks
FROM Item;
but i need to store the exact same records..same field...for the
archive. for instance
DateReceived : 1-sep-2006
ItemNo : 1
ItemName : Sweets
IncomingStock : 50 boxes
and then the next day i bought another 10 boxes of sweets and i have to
fill in the form for 10
DateReceived : 2-sep-2006
ItemNo : 1
ItemName : Sweets
IncomingStock : 10
so in my archive i want it to be like this:
DateReceived ItemNo ItemName IncomingStock
1-sep-2006 1 Sweets 50
2-sep-2006 1 Sweets 10
and so on... however...when i'm using my append it become like this if
i have another item:
DateReceived ItemNo ItemName IncomingStock
1-sep-2006 1 Sweets 50
2-sep-2006 1 Sweets 10
1-sep-2006 1 Sweets 50
2-sep-2006 1 Sweets 10
3-sep-2006 2 Choco 15
Can sumone help me..i'm new in this area
and i dont want it to be using subform since it will become longer ...
i have created a table with fields: ItemNo, ItemName, IncomingStocks
and also DateReceived.
The IncomingStocks and DateReceived are volatile. it is expected to
change several times during the life of a record
I have tried the simple append query
but it keep on copying the whole records instead of the 'ONE' record
that i change..
What code do i need to use to have it append only the record the user
has
touched? I have created a append query, but this will append all the
records
from the main table to history table.
INSERT INTO ItemHistory ( ItemNo, ItemName, DateReceived,
IncomingStocks )
SELECT Item.ItemNo, Item.ItemName, Item.DateReceived,
Item.IncomingStocks
FROM Item;
but i need to store the exact same records..same field...for the
archive. for instance
DateReceived : 1-sep-2006
ItemNo : 1
ItemName : Sweets
IncomingStock : 50 boxes
and then the next day i bought another 10 boxes of sweets and i have to
fill in the form for 10
DateReceived : 2-sep-2006
ItemNo : 1
ItemName : Sweets
IncomingStock : 10
so in my archive i want it to be like this:
DateReceived ItemNo ItemName IncomingStock
1-sep-2006 1 Sweets 50
2-sep-2006 1 Sweets 10
and so on... however...when i'm using my append it become like this if
i have another item:
DateReceived ItemNo ItemName IncomingStock
1-sep-2006 1 Sweets 50
2-sep-2006 1 Sweets 10
1-sep-2006 1 Sweets 50
2-sep-2006 1 Sweets 10
3-sep-2006 2 Choco 15
Can sumone help me..i'm new in this area
and i dont want it to be using subform since it will become longer ...