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  

Protecting text boxes in forms



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2010, 04:36 PM posted to microsoft.public.access.forms
SamMexico
external usenet poster
 
Posts: 3
Default Protecting text boxes in forms

Hello everyone, I was wondering whether anyone out there could please help me?
I am a complete novice concerning MS Access. I have recently managed to
create a database using 2003 and have made some headway but I am stuck on one
particular issue:

When accessing the various forms I would like the text boxes that already
contain data to be locked (this varies from record to record though...) so
that no one can alter them whilst the empty text boxes are editable (and then
locked/protected) once I have entered the relevant data.

Is there a simple way (step by step please as I really haven't got a clue )
of doing this?

Any help would be greatly appreciated,

Sam

  #2  
Old April 13th, 2010, 04:05 AM posted to microsoft.public.access.forms
Data Gopher
external usenet poster
 
Posts: 1
Default Protecting text boxes in forms

Hi Sam,

You can try something like this.

If not isnull(me!YourFieldName) Then
Me!YourFieldName.Enabled=False
end if
--
Dan



"SamMexico" wrote:

Hello everyone, I was wondering whether anyone out there could please help me?
I am a complete novice concerning MS Access. I have recently managed to
create a database using 2003 and have made some headway but I am stuck on one
particular issue:

When accessing the various forms I would like the text boxes that already
contain data to be locked (this varies from record to record though...) so
that no one can alter them whilst the empty text boxes are editable (and then
locked/protected) once I have entered the relevant data.

Is there a simple way (step by step please as I really haven't got a clue )
of doing this?

Any help would be greatly appreciated,

Sam

.

  #3  
Old April 13th, 2010, 09:11 AM posted to microsoft.public.access.forms
SamMexico via AccessMonster.com
external usenet poster
 
Posts: 26
Default Protecting text boxes in forms

Thanks Dan, sorry to be a complete nugget but where exactly do I put that
code?

Cheers,

Sam

--
Message posted via http://www.accessmonster.com

  #4  
Old April 13th, 2010, 11:35 AM posted to microsoft.public.access.forms
SamMexico via AccessMonster.com
external usenet poster
 
Posts: 26
Default Protecting text boxes in forms

Just managed to get it - thanks!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201004/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 01:27 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.