db-ches-one
New member
- Local time
- Today, 15:34
- Joined
- Oct 16, 2011
- Messages
- 4
Well basically what I'm trying to do. I have 2 tables quote and quote items linked by quote id. when quote is approved i have(well want to lol) have a button that will take items (for that particular quote) and copies it to table invoice items...
now i've used 2 parametrized append queries to transfer 1st ID as an invoice ID and the another one to transfer/append as invoice items.
Trouble is the moment someone adds invoice before quote was produced auto id is increased and no longer i can append existing id (from quotes) to invoices... (kinda makes me wish i'd never really tested it haha)
I know that there are possibly other ways how to do it with perhaps using yes/no to mark quote as an invoice an go that way but then, what if some items would need to be added to invoice)(suppose some sort of underlying yes/no options to include individual items but that would be too much for the end user)
So to sum up does anyone know of a way to grabbing bunch of records (in this case quote items) and copying them to invoice items whilst creating (new)invoice id (essentially a new master record if you like) and matching them together so they are in (parent-child) relationship, cause i don't know and I'm loosing will to live
thanks
(phewww my first post lol)
posted a pic of relationships which should make it clear(er)
now i've used 2 parametrized append queries to transfer 1st ID as an invoice ID and the another one to transfer/append as invoice items.
Trouble is the moment someone adds invoice before quote was produced auto id is increased and no longer i can append existing id (from quotes) to invoices... (kinda makes me wish i'd never really tested it haha)
I know that there are possibly other ways how to do it with perhaps using yes/no to mark quote as an invoice an go that way but then, what if some items would need to be added to invoice)(suppose some sort of underlying yes/no options to include individual items but that would be too much for the end user)
So to sum up does anyone know of a way to grabbing bunch of records (in this case quote items) and copying them to invoice items whilst creating (new)invoice id (essentially a new master record if you like) and matching them together so they are in (parent-child) relationship, cause i don't know and I'm loosing will to live

thanks
(phewww my first post lol)
posted a pic of relationships which should make it clear(er)
Attachments
Last edited: