Connecting Tech Pros Worldwide Forums | Help | Site Map

product code

Newbie
 
Join Date: Dec 2007
Posts: 2
#1: Dec 26 '07
hi

software in ms-access

table name - company
field-product_code


i want this product code will be change depending on month.
if month is janury my product code is start from 0001, 0002,0003,0004....0011,0012........
but if month change then product code again start from 0001,0002,0003.....up to month end.

nico5038's Avatar
Moderator
 
Join Date: Nov 2006
Location: The Netherlands
Posts: 2,232
#2: Dec 30 '07

re: product code


Using "coded" codes is in general discouraged.
In this situation I would just use a "DateTimeEntered" field for recording the product and use a function to extract the YearMonth and calculate the sequence number.

Nic;o)
Reply


Similar Microsoft Access / VBA bytes