Can't disable Form.AllowEdit

  • Thread starter Thread starter DataNewBie
  • Start date Start date
D

DataNewBie

Guest
Can't disable MyForm.AllowEdits

Hi, I got a strange problem. When I set MyForm.AllowEdits to "False", I can still edit the fields on it from Access 2002 I am working with. I searched the documentation and found I did nothing wrong. But when I copy the file to another computer running Access 2000, the setting works there. Now I can copy back the program to my own computer and it works. It is so strange to me. Why the same setting works differently in different computer? Any suggestions and expanation will be appreciated!

DNB
 
Last edited:
Now that no one would like to answer my first question, I'd like to "fix" this problem by just copy back and let it be there to work. But I have another problem after the first one "solved": When I first set the MyForm's "Allow Edits" property to false, and then assign the cmdEdit commond button the function to set it to "True", I am only be able to edit the values of the controls of MyForm, but not those on the "MySubform" which is MyForm's subform. Who else had the same problem before? Any comments about this?
 
Use Me.Syntax and Me.SubformName.Syntax
example:
Me.AllowAdditions = False
Me.AllowEdits = False
Me.AllowDeletions = False
or
Me.MySubform.AllowAdditions = False
Me.MySubform.AllowEdits = False
Me.MySubform.AllowDeletions = False
hth
Chris
 
dopedealer said:
Use Me.Syntax and Me.SubformName.Syntax
example:
Me.AllowAdditions = False
Me.AllowEdits = False
Me.AllowDeletions = False
or
Me.MySubform.AllowAdditions = False
Me.MySubform.AllowEdits = False
Me.MySubform.AllowDeletions = False
hth
Chris

Unfortunately, only the first half of this piece of code works. Error message says: "Object doesn't support this property or method" when it is running to "Me.MySubform.AllowAdditions = False". It seems that one cannot programmingly set the fields on a subform to not editable or editable?

DNB
 

Users who are viewing this thread

Back
Top Bottom