Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Prevent Unwanted Edits

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access
View previous topic :: View next topic  
Author Message
BIGmiralli
Frequent Poster


Joined: 17 Apr 2007
Posts: 38
Location: Boston, Massachusetts

PostPosted: Fri May 23, 2008 9:20 am    Post subject: Prevent Unwanted Edits Reply with quote

If you are trying to make a form secure so that edits are only made after an "Edit" button is pressed then:

1. Change your backgroudn color to gray
2. Lock each text box
3. Make an "Edit" button with the following code:

Code:
Me.tbxName.BackColor = RGB(255, 255, 255)  'White

Me.tbxName.Locked = False


4. On the forms "OnCurrent" event put the follwoing code:

Code:
Me.tbxName.BackColor = RGB(216, 216, 216) 'Gray

Me.tbxName.Locked = True

________
Vaporizer wholesaler
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group