Bruce,
<<Is it becase I have parameters from my form>>
As long as the form is open and the query is going to a Jet database, then
no, this isn't the problem.
The query seems OK, but it references two other queries, qry_ListPrice and
qry_ListPrice. Can you show me those too?
Also, can you try this please (humour me):
'Append the PAF to the system
Dim db As Database
Set db = CurrentDb
On Error Resume Next
db.Execute "qry_Append_LTD", dbFailOnError
If Err <> 0 Then
MsgBox "The record could not be added."
Else
MsgBox "PAF has been saved successfully"
End If
Set db = Nothing
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyT...764559036.html
"Bruce" <(E-Mail Removed)> wrote in message
news:3EE2CEF9-0626-4DCD-8B51-(E-Mail Removed)...
> Hi Graham,
> Appreciate your help. Ive just had a thought. Is it becase I have
parameters from my form. If so, how do I get round this?
>
> Bruce
>
> INSERT INTO tbl_PAF ( CustomerID, ProductID, Price, DealID, StartDate,
EndDate, PAFID )
> SELECT [Forms]![frm_PAF_Maintenence]![Combo_Customer] AS CustomerID,
qry_ListPrice.ProductID, qry_ListPrice.LTD_Temp,
[Forms]![frm_PAF_Maintenence]![Combo_DealType] AS DealID,
[Forms]![frm_PAF_Maintenence]![txt_StartDate] AS StartDate,
[Forms]![frm_PAF_Maintenence]![txt_EndDate] AS EndDate,
[Forms]![frm_PAF_Maintenence]![txt_PafID] AS PafID
> FROM qry_ListPrice
> WHERE (((qry_ListPrice.LTD_Temp) Is Not Null));
>