command button visible

jhahes

Registered User.
Local time
Yesterday, 16:41
Joined
Jul 13, 2005
Messages
20
How do i code the following


I want to say if

DateField in current record = "" then
commandbutton1.visible=true
Else
commandbutton1.visible=false

the button being visible would depend on the record


thanks for any help

Josh
 
I'd do something like this...
Code:
Private Sub Form_Current()
  [COLOR="Green"]'command button visiblity varies with date field value[/COLOR]
  Me.cmd1.Visible = Nz(Me.DateField, 0) = 0
End Sub
 

Users who are viewing this thread

Back
Top Bottom