General discussion

Locked

Access 2000 DAP - Disabling fields

By apsingh ·
I am trying to disable certain fields on my DAP. For example, if the approved checkbox is ticked the rest of the fields on the page are grayed out.

Also is it possible to gray out all the fields + the checkbox itself, so basically as soon as a record is approved it is maked read-only via the DAP.

Here is the code I am using to try to disable one field depending on if the checkbox is on or off.

This code does not work!!

<SCRIPT language=vbscript>
Sub FixEnabling
' Enabling/disabling a field
If (Engineering_Approval.Value = true) Then
Customer.disabled = True
Else
Customer.disabled = False
End If
End Sub
</SCRIPT>

<SCRIPT for=MSODSC event=Current(info) language=vbscript>
<!--
FixEnabling
-->
</SCRIPT>

<SCRIPT for=MSODSC event=OnChange language=vbscript>
<!--
FixEnabling
-->
</SCRIPT>

What am I doing wrong?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Software Forum
1 total post (Page 1 of 1)  

Software Forums