Page 1 of 1

Error when trying to delete record

Posted: Sat Jun 02, 2012 8:10 pm
by Fike
Hello,

I am using the latest version of nuBuilder. I used the new subfrom feature (Browse in subform) in one of my forms, but now when I try to delete a record on that form I get the following error message:


SQL
DELETE FROM WHERE = '14fc77244c6808'

Transaction
No Transaction.


Error
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 'WHERE = '14fc77244c6808'' at line 1

I removed the subform and then I was able to delete records on that form with no error message.

Is there a workaround to keep the subform with the "Browse in subform" feature and being able to delete records from that form?

Regards!

Fike

Re: Error when trying to delete record

Posted: Wed Jun 06, 2012 3:27 am
by shane
your SQL is missing the table name, can you provide more info as to how the form and subform is setup

Re: Error when trying to delete record

Posted: Thu Jun 07, 2012 12:24 am
by Fike
Hi Shane,

To setup the subform, I filled the 'Browse in Subform' and 'Default Filter for Browse Screen' fields, and I left blank the 'Table', 'Primary Key', 'Foreign Key', and 'SQL' fields.

I thought it was not necessary to fill these fields since I just wanted to use the subform to browse some records (using the new feature of the 2.6 version of nuBuilder).

However the problem arises when trying to delete a record of the form. As you mentioned, nuBuilder will not find the table name of the subform to erase also the records of the subform related to the form's record, since I left blank those fields.

I just filled the 'Table', 'Primary Key', 'Foreign Key', and 'SQL' fields of the subform and the problem disappeared.

Thank you very much!

Regrads,

Fike

Re: Error when trying to delete record

Posted: Fri Jun 08, 2012 3:37 am
by shane
Thank for your feedback we will look further into the documentation to make this clearer in the further

Re: Error when trying to delete record

Posted: Tue Jun 12, 2012 6:18 am
by admin
Fike,

Thanks for all your info.

We've fixed that bug and it will come out soon in version 2.71.

In the mean time you can replace formdelete.php with this once attached in a zip.

Steven

Re: Error when trying to delete record

Posted: Tue Jul 03, 2012 4:23 pm
by Fike
Thanks a lot Steven!

I will replace it righ tnow

Regards

Fike

Re: Error when trying to delete record

Posted: Thu Jul 05, 2012 2:48 am
by admin
.