Hi folks,
Happily installing my new system, when the buyer pipes up saying he needs to continue using his old invoice number sequence.
So I've had to remove my autonumber sequence for Customer Orders (OrderID). When the orders form opens it needs to add one to the last (most recent) orderid and use as orderid.
I can't just find the largest orderid and add one, 'cause the numbers the user has in the past are a mess (and he doesn't want to change them!).
I've tried adding a field to the orders table (mycount) and adding one to that, but couldn't get it to work....I feel a query to find the most recent is the way to go, but I wanna find just the most recent one - not a list.
Not sure how to go about this (normally I'd just graft at it for weeks - but I'm really pushed today!).
Thanks
RPE
Happily installing my new system, when the buyer pipes up saying he needs to continue using his old invoice number sequence.
So I've had to remove my autonumber sequence for Customer Orders (OrderID). When the orders form opens it needs to add one to the last (most recent) orderid and use as orderid.
I can't just find the largest orderid and add one, 'cause the numbers the user has in the past are a mess (and he doesn't want to change them!).
I've tried adding a field to the orders table (mycount) and adding one to that, but couldn't get it to work....I feel a query to find the most recent is the way to go, but I wanna find just the most recent one - not a list.
Not sure how to go about this (normally I'd just graft at it for weeks - but I'm really pushed today!).
Thanks
RPE
Comment