PC Review


Reply
Thread Tools Rate Thread

Delete record button not working (allowedits = true)?

 
 
Sandroid
Guest
Posts: n/a
 
      11th May 2010
I set AllowEdits to False in forms and created a "edit record" button
to se AllowEdits to True as follows:

"
I had a similar way also. For your form go to the Form, Properties,
DataTab and set AllowEdits to NO. Next, create a CommandButton,
without the wizard, and then go to the Properties of the
CommandButton, click on OnEvent then click on CodeBuilder (...) In
there you simply put: Me.AllowEdits = True

Oh, in the Form's Properties on the AfterUpdate Event click on the
CodeBuilder again and type this: Me.AllowEdits = False

Now when your form opens it can't be Edited until you click on the
CommandButton, labeled something like EDIT RECORD. Once you finish
that record and tab out of it you automatically go back to a Non-
Editable form. OR create a CommandButton to set it to Save the record
on demand and set the AllowEdits = False there.
"

Now everything else is fine but delete record button won't work even
when I cliks the button which sets Me.allowedits = True.

error msg is like: command or action "deleterecord" is not usable

What's wrong here?

-S
 
Reply With Quote
 
 
 
 
Sandroid
Guest
Posts: n/a
 
      11th May 2010
On 11 touko, 11:34, Sandroid <santeri.virta...@gmail.com> wrote:
> I set AllowEdits to False in forms and created a "edit record" button
> to se AllowEdits to True as follows:
>
> "
> I had a similar way also. For your form go to the Form, Properties,
> DataTab and set AllowEdits to NO. Next, create a CommandButton,
> without the wizard, and then go to the Properties of the
> CommandButton, click on OnEvent then click on CodeBuilder (...) In
> there you simply put: Me.AllowEdits = True
>
> Oh, in the Form's Properties on the AfterUpdate Event click on the
> CodeBuilder again and type this: Me.AllowEdits = False
>
> Now when your form opens it can't be Edited until you click on the
> CommandButton, labeled something like EDIT RECORD. Once you finish
> that record and tab out of it you automatically go back to a Non-
> Editable form. OR create a CommandButton to set it to Save the record
> on demand and set the AllowEdits = False there.
> "
>
> Now everything else is fine but delete record button won't work even
> when I cliks the button which sets Me.allowedits = True.
>
> error msg is like: command or action "deleterecord" is not usable
>
> What's wrong here?
>
> -S


Forget this, resolved.
 
Reply With Quote
 
RonaldoOneNil
Guest
Posts: n/a
 
      11th May 2010
There is a separate form property called Allow Deletions

"Sandroid" wrote:

> I set AllowEdits to False in forms and created a "edit record" button
> to se AllowEdits to True as follows:
>
> "
> I had a similar way also. For your form go to the Form, Properties,
> DataTab and set AllowEdits to NO. Next, create a CommandButton,
> without the wizard, and then go to the Properties of the
> CommandButton, click on OnEvent then click on CodeBuilder (...) In
> there you simply put: Me.AllowEdits = True
>
> Oh, in the Form's Properties on the AfterUpdate Event click on the
> CodeBuilder again and type this: Me.AllowEdits = False
>
> Now when your form opens it can't be Edited until you click on the
> CommandButton, labeled something like EDIT RECORD. Once you finish
> that record and tab out of it you automatically go back to a Non-
> Editable form. OR create a CommandButton to set it to Save the record
> on demand and set the AllowEdits = False there.
> "
>
> Now everything else is fine but delete record button won't work even
> when I cliks the button which sets Me.allowedits = True.
>
> error msg is like: command or action "deleterecord" is not usable
>
> What's wrong here?
>
> -S
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
click on tab and change allowedits to true deb Microsoft Access 2 5th Aug 2009 08:33 PM
AllowEdits Toggle button not working Unbridled Microsoft Access 2 11th Jun 2009 10:08 PM
Re: AllowEdits Toggle button not working Unbridled Microsoft Access 0 11th Jun 2009 07:44 PM
"Delete Record" not working after adding "Edit Record" button. Mike Janes Microsoft Access 7 20th Aug 2006 03:10 PM
AllowEdits switching (true, false) =?Utf-8?B?c2tr?= Microsoft Access Form Coding 1 18th Oct 2005 03:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 AM.