A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I allow or disallow editing



 
 
Thread Tools Display Modes
  #1  
Old November 20th, 2009, 02:59 AM posted to microsoft.public.access.forms
BobC[_6_]
external usenet poster
 
Posts: 89
Default How do I allow or disallow editing

I have a form (in MS Access 2007)that is used an an input form for
updating linked tables.
I want to change the property of some text boxes on the form to be
editable based on the contents of another field.
For example; if a field contains a date (delivery date)in it, I want to
no longer allow the user to change the EquipmentName or
EquipmentQuantity fields. I want the the field to still be displayed
but no longer capable of being edited.
Is there an easy way to do this?
I prefer to do this without writing VB code, but I can if that is the
best way.
Thanks!
  #2  
Old November 20th, 2009, 11:04 AM posted to microsoft.public.access.forms
AccessVandal via AccessMonster.com
external usenet poster
 
Posts: 461
Default How do I allow or disallow editing

In the current event of the form something like

If isnull(me.control) or len(me.control & "")0 then
me.control.locked = True
else
me.control.locked = False
end if

BobC wrote:
I have a form (in MS Access 2007)that is used an an input form for
updating linked tables.
I want to change the property of some text boxes on the form to be
editable based on the contents of another field.
For example; if a field contains a date (delivery date)in it, I want to
no longer allow the user to change the EquipmentName or
EquipmentQuantity fields. I want the the field to still be displayed
but no longer capable of being edited.
Is there an easy way to do this?
I prefer to do this without writing VB code, but I can if that is the
best way.
Thanks!


--
Please Rate the posting if helps you.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200911/1

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.