Dear all
I have create a sequential number in my database i tried
Dmax but not successful
my database articles this :
tblitem = FIELDS: IID[PK] ,category , itemname , sname
tbldetails[main table]= FIELDS: ID[PK], tdate, item, sname, cod, wt
frmpurchase = combobox from tblitem And tdate ,wt ,cod From tbldetails
in tblitem my data is this :
IID category itemname sname
1 gold Ring R
2 gold chain CH
3 gold babyring BR
IN tbldetails [MAIN TABLE]
ID cat. itemname sname cod wt
1 go. Ring R R01 2.500
2 go. chain CH CH01 4.000
3 go. Ring R R02 3.000
so i want every time i add a item in my frmpurchase ,sequential number auto generate in “cod”
example: If I add Ring in itemname field box Then auto generate in “COD” field box= R03 , R04 ,R05 , CH02,CH03
Or If add New itemname Then cod = sname+01
Pls help me
I have create a sequential number in my database i tried
Dmax but not successful
my database articles this :
tblitem = FIELDS: IID[PK] ,category , itemname , sname
tbldetails[main table]= FIELDS: ID[PK], tdate, item, sname, cod, wt
frmpurchase = combobox from tblitem And tdate ,wt ,cod From tbldetails
in tblitem my data is this :
IID category itemname sname
1 gold Ring R
2 gold chain CH
3 gold babyring BR
IN tbldetails [MAIN TABLE]
ID cat. itemname sname cod wt
1 go. Ring R R01 2.500
2 go. chain CH CH01 4.000
3 go. Ring R R02 3.000
so i want every time i add a item in my frmpurchase ,sequential number auto generate in “cod”
example: If I add Ring in itemname field box Then auto generate in “COD” field box= R03 , R04 ,R05 , CH02,CH03
Or If add New itemname Then cod = sname+01
Pls help me
Comment