Web Development

Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!

General discussion

Locked

How to hide control box in Access 2002

By oguntundeb ·
Please, i urgently need a code on how to hide control box when a particular criteria is not meant. For example, if a function is to return 1 or 0, iif ([score]<=0, let it not return any value, to leave the place blank.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by HKay In reply to How to hide control box i ...

Some properties, such as CloseButton and ControlBox cannot be set at runtime. You could use this idea instead:

Private Sub Form_Close()
If intMyVariable = 1 Then
DoCmd.CancelEvent
End If
End Sub

Collapse -

by leirags In reply to How to hide control box i ...

Use Hide property or visible

Related Discussions

Related Forums