Hi guys! im a beginner using ms access. can anybody help to settle my prob. i have assigned 4 tables just like below:-
Table Item:
IDitem
Itemname
Realquantity
Table RegisterItem:
IDitem
Itemname
Dateregister
Quantityregister
Table Request
IDitem
Itemname
Daterequest
IDstaff
Quantityrequest
Table Staff
IDstaff
Namestaff
Actually, i'm tryin to create a stock management system in my office where there is stock in & stockout. here i put IDitem as primary key (datatype=text) becoz our IDitem in manual record start with "001". The problem is, when i add a new record for example "001" in the "IDitem" field got error "the changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship".
For example:
form_registeritem
IDitem Itemname Dateregister Quantityregister
001 Pen 02-Mei-2010 50
001 Pen 30-Mei-2010 20
* can't add new record for the same IDitem.
* Pen ID is 001 so if we have new stock of this item we have to register it in our record.
~Need Helps~
Table Item:
IDitem
Itemname
Realquantity
Table RegisterItem:
IDitem
Itemname
Dateregister
Quantityregister
Table Request
IDitem
Itemname
Daterequest
IDstaff
Quantityrequest
Table Staff
IDstaff
Namestaff
Actually, i'm tryin to create a stock management system in my office where there is stock in & stockout. here i put IDitem as primary key (datatype=text) becoz our IDitem in manual record start with "001". The problem is, when i add a new record for example "001" in the "IDitem" field got error "the changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship".
For example:
form_registeritem
IDitem Itemname Dateregister Quantityregister
001 Pen 02-Mei-2010 50
001 Pen 30-Mei-2010 20
* can't add new record for the same IDitem.
* Pen ID is 001 so if we have new stock of this item we have to register it in our record.
~Need Helps~