Hi Remou,
I sat for a couple of hours last night and came up with this based on your code:
Set db = CurrentDb
Set rsDetails = db.OpenRecordset("SELECT JobTitle, Size, Size2, Colours, Colours2, NoPages, NoPages2," & _
"Material, Material2, Finishing, Finishing2, PackagingIdFk, DeliveryIdFk, ReproSpec, ReproSpec2, ProofIdFk," & _
"Quantity, TotalCost, Comment" & " FROM tbQuoteDetails where quoteidfk = " & Me.QuoteID)
strDetailsSQL = "insert into tbquotedetails (JobTitle, Size, Size2, Colours, Colours2, NoPages, NoPages2," & _
"Material, Material2, Finishing, Finishing2, PackagingIdFk, DeliveryIdFk, ReproSpec, ReproSpec2, ProofIdFk," & _
"Quantity, TotalCost, Comment) select rsDetails!JobTitle, rsDetails!Size," & _
"rsDetails!Size2, rsDetails!Colours, rsDetails!Colours2, rsDetails!NoPages, rsDetails!NoPages2," & _
"rsDetails!Material, rsDetails!Material2, rsDetails!Finishing, rsDetails!Finishing2, rsDetails!PackagingIdFk," & _
"rsDetails!DeliveryIdFk, rsDetails!ReproSpec, rsDetails!ReproSpec2, rsDetails!ProofIdFk," & _
"rsDetails!Quantity, rsDetails!TotalCost, rsDetails!Comment"
DoCmd.RunSQL strDetailsSQL
Me.Requery
Which i think is nearly there (tho i could be wrong). When i run this code it asks for the rsDetails! fields as parameters which makes me think that i need to define my connection type and my recordset type. The only problem is i'm clueless as to how to do this apart from the fact that i may need to do some DIM statements.
I'd appreciate it if you could point me in the right direction.
Regards,
Noel.