Print from Edit screen w/ Subform
Posted: Tue May 22, 2012 1:55 pm
Hoping this isn't a dumb question because it has stumped me for two days. I have searched the forum and the wiki.
Following the instructions in the video tutorial (http://www.youtube.com/watch?v=qrRYagms ... ature=plcp), I created a button on my Edit form:

Following the instructions in the video tutorial on the report builder (http://www.youtube.com/watch?v=G1JrJqZR ... ature=plcp), I made a report. When I run it from the Edit form, I always get this error:
One thing I noticed was
I tried rewriting the PHP Data Code to make sure subform_followups (the subform object in the issues form) was NOT selected:

Same problem, though.
I'm using MySQL 5.1.54.
Any thoughts?
Many thanks in advance.
Following the instructions in the video tutorial (http://www.youtube.com/watch?v=qrRYagms ... ature=plcp), I created a button on my Edit form:

Following the instructions in the video tutorial on the report builder (http://www.youtube.com/watch?v=G1JrJqZR ... ature=plcp), I made a report. When I run it from the Edit form, I always get this error:
Here's the SQL on the error page:1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.agency_name , "bogus@bogus.net" AS agencies.contact_email , "Bogus Bogusstein' at line 1
Code: Select all
CREATE TABLE a___nu14fbb7a6a29c35___ SELECT NOW() as timestamp , "Bogus Agency, Inc." AS agencies.agency_name , "bogus@bogus.net" AS agencies.contact_email , "Bogus Bogusstein" AS agencies.contact_name , "3" AS recordID , "Single Issue Report with Followups" AS ReportTitle , "" AS subform_followups , "followup1" AS subform_followups0000followup_detail , "May-07-2012" AS subform_followups0000followup_dt , "followup2" AS subform_followups0001followup_detail , "May-09-2012" AS subform_followups0001followup_dt , "followup3" AS subform_followups0002followup_detail , "May-10-2012" AS subform_followups0002followup_dt , "followup4" AS subform_followups0003followup_detail , "May-13-2012" AS subform_followups0003followup_dt , "followup5" AS subform_followups0004followup_detail , "May-17-2012" AS subform_followups0004followup_dt , "followup6" AS subform_followups0005followup_detail , "May-17-2012" AS subform_followups0005followup_dt , "followup7" AS subform_followups0006followup_detail , "May-21-2012" AS subform_followups0006followup_dt , "" AS subform_followups0007followup_detail , "" AS subform_followups0007followup_dt , ___nu14fbb7a6a29c35___.* FROM ___nu14fbb7a6a29c35___
Code: Select all
" "AS suform_followups ,

Same problem, though.
I'm using MySQL 5.1.54.
Any thoughts?
Many thanks in advance.