G
Guest
My database has a customer orders table - order no is pk and autonumber. I
also have a line items table as each order can have many line items, the
orderNo is the fk in this table. I need the line item no to auto increment,
but need this to start at 1 for every order. e.g order no 1 has lines I, 2
and 3, order2 has line 1 and 2, order 2 has line 1 etc... hope this explains
what I mean! any help would be appreciated!
also have a line items table as each order can have many line items, the
orderNo is the fk in this table. I need the line item no to auto increment,
but need this to start at 1 for every order. e.g order no 1 has lines I, 2
and 3, order2 has line 1 and 2, order 2 has line 1 etc... hope this explains
what I mean! any help would be appreciated!