i have a table contains three fields (id - category - description - code)
1- Mugs - white - MUG01
2- Plate - 3D 8" - PLA01
3- Mugs - colored - MUG02
4- Mobile Cover - iphone 6 - MOB01
5- Mobile Cover - note 5 - MOB02
so i want to enter the category and the description then the code will be automatically created if i enter a new record (6) and i choose from the combo box Mugs then i choose white from the description it will be automatically MUG01 but if i enter a new description it will be automatically MUG 03
any help?
1- Mugs - white - MUG01
2- Plate - 3D 8" - PLA01
3- Mugs - colored - MUG02
4- Mobile Cover - iphone 6 - MOB01
5- Mobile Cover - note 5 - MOB02
so i want to enter the category and the description then the code will be automatically created if i enter a new record (6) and i choose from the combo box Mugs then i choose white from the description it will be automatically MUG01 but if i enter a new description it will be automatically MUG 03
any help?