i have a tabular form i witch i defined data entry=no
i want a buuton at the end of each line, that by pressing it, ill be able to edit the line.
how do i program the button?
i have a tabular form i witch i defined data entry=no
i want a buuton at the end of each line, that by pressing it, ill be able to edit the line.
how do i program the button?
One way you could do this is to have an unbound form, and run an append query (on the button click) to move this data to your table, then after the query has run set all fields on the form to Null.
i wrote the code in my DB
it lets me make changes now
but it doesnt get enabled again.
and one other question,
is it possible to allow changes for the specific row only?
(not for the whole table?)
Sorry, I must have had a brain explosion when I wrote that, as I'd put the code in the on current event, so it wasn't going to a new record. I've taken the code out of the On current event so it should work fine now.
All you can do is to turn the Allow edits to false when focus shifts from your current record. Given the code you already have it should just be a matter of implementing it when the focus shifts from the current record.
There are a number of ways you could tackle this. You could put some code in the last field in the tab order, so that when that field looses focus you switch the allow edits to false.
Alternatively you could send the focus back to the first field in the tab list, so you stay on the same record. Then have buttons to navigate to the previous or next, and set allow edits to false at that point.