needhelpplz2
New member
- Local time
- , 17:20
- Joined
- Jan 16, 2014
- Messages
- 8
Hi guys,
I've made a report button on my application that is supposed to export results into a pdf file. Here's the weird thing, after it works once if I close it again and try to do the same thing, it gives me a "Run-Time error 3127, The INSERT INTO statement containis the following unknown field name: Expr1". This is for the line DoCmd.OpenQuery("REPORT:APPENDING").
This is the code for REPORT:APPENDING and everything else is named right
I've made a report button on my application that is supposed to export results into a pdf file. Here's the weird thing, after it works once if I close it again and try to do the same thing, it gives me a "Run-Time error 3127, The INSERT INTO statement containis the following unknown field name: Expr1". This is for the line DoCmd.OpenQuery("REPORT:APPENDING").
This is the code for REPORT:APPENDING and everything else is named right
Code:
INSERT INTO Report IN 'C:\Users\####Name####\Documents\ReportingDb.accdb'
SELECT [REPORT:APPENDED(b)].*
FROM [REPORT:APPENDED(b)];