buttons visible only after record saved

wrweaver

Registered User.
Local time
Today, 00:36
Joined
Feb 26, 2013
Messages
75
So I only want certain buttons to show up after a record is saved. I entered the following code and the buttons stay on the screen even if it's new.

If Me.NewRecord Then
PrintWorkOrder.Visible = False
WorkOrderComplete.Visible = False
Command54.Visible = False
Command44.Visible = False
Command47.Visible = False
LaborTotal.Visible = False
MaterialTotal.Visible = False
Else
PrintWorkOrder.Visible = True
WorkOrderComplete.Visible = True
Command54.Visible = True
Command44.Visible = True
Command47.Visible = True
LaborTotal.Visible = True
MaterialTotal.Visible = True

End If
 
you need it in the current event

personally, i would be inclined to set enabled=false, rather than visible=false.

setting enabled=false "greys" the buttons instead.
 
That did it! Thanks! I do like the enabled false better too!
 

Users who are viewing this thread

Back
Top Bottom