|
-
Apr 23rd, 2006, 10:38 PM
#1
Thread Starter
Member
[RESOLVED] [RESOLVED} Need VBA code to set field's enabled property to "false"
I need vba code that will set the enabled property of a field named "Remarks" to "false" if data is present and leave it "true" if it has no data. This is an Access 2000 database (Flat file).
Thanks
Carbo
Solution:
Private Sub Form_Current()
If IsNull(Remarks) Then
Remarks.Enabled = True
Else
Remarks.Enabled = False
End If
End Sub
Last edited by carbo; Apr 24th, 2006 at 05:22 PM.
Reason: Resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|