R Raddy Registered User. Local time Today, 21:11 Joined Apr 29, 2010 Messages 34 May 11, 2010 #1 I have a menu which opens forms in either "update" or "add" mode How can I protect specific fields in the form if "update" is selected?
I have a menu which opens forms in either "update" or "add" mode How can I protect specific fields in the form if "update" is selected?
M MStef Registered User. Local time Today, 21:11 Joined Oct 28, 2004 Messages 2,251 May 11, 2010 #2 Try wht LOCKED or ENABLED properties (field properties).
R Raddy Registered User. Local time Today, 21:11 Joined Apr 29, 2010 Messages 34 May 11, 2010 #3 Hi Because I only want to lock certain fields depending on whether the form has been called for update or add. For example, I don't want the 'ID' field to be opne for update if the form is opened in amend mode.
Hi Because I only want to lock certain fields depending on whether the form has been called for update or add. For example, I don't want the 'ID' field to be opne for update if the form is opened in amend mode.
gemma-the-husky Super Moderator Staff member Local time Today, 21:11 Joined Sep 12, 2006 Messages 16,024 May 11, 2010 #4 normally you would use the current event to set these things maybe something like id.enabled = "form is in addmode" ----------- note the enabled and locked values work together to give 4 different edit options.
normally you would use the current event to set these things maybe something like id.enabled = "form is in addmode" ----------- note the enabled and locked values work together to give 4 different edit options.
M MStef Registered User. Local time Today, 21:11 Joined Oct 28, 2004 Messages 2,251 May 11, 2010 #5 Look at "DemoLockedEnabledA2000.mdb" (attachment, zip). Form1 (Locked). Form2 (Enabled). Look at VBA. Attachments DemoLockedEnabledA2000.zip DemoLockedEnabledA2000.zip 15.4 KB · Views: 161
Look at "DemoLockedEnabledA2000.mdb" (attachment, zip). Form1 (Locked). Form2 (Enabled). Look at VBA.
R Raddy Registered User. Local time Today, 21:11 Joined Apr 29, 2010 Messages 34 May 11, 2010 #6 Mstef - thanks for that I will look at it. Jemma - how would I have accss to that value in the called/open form
Mstef - thanks for that I will look at it. Jemma - how would I have accss to that value in the called/open form