Page 1 of 1
Subform Inserts Blank Row
Posted: Fri Dec 23, 2011 7:59 am
by vario
I have a simple edit form showing vehicle details with a subform, with 1 blank row, showing odometer readings. When I amend the vehicle details or one of the subform rows and click "Save", the subform inserts a blank row (i.e dates contain "000-00-00", char values contain "" and numbers contain 0). How can I stop this from happening?
Re: Subform Inserts Blank Row
Posted: Wed Dec 28, 2011 7:04 am
by admin
Vario,
I can't say exactly but what have you got in the sql for your subform?
Capture.PNG
Steven
Re: Subform Inserts Blank Row
Posted: Wed Dec 28, 2011 7:59 am
by vario
The SQL is pretty basic:
select * from odometer
where odo_vehicle_id = '#id#'
order by odo_start_date
I have subsequently discovered that the blank row is not inserted if I enable the "Delete" checkbox for the subform (which I do not really want to do).
Re: Subform Inserts Blank Row
Posted: Thu Dec 29, 2011 11:40 pm
by admin
Maybe 'enable' checkboxes but then hide them, like this..
http://forums.nubuilder.cloud/viewtopic.php?f=6&t=7606
Steven