Form showing detail section

D

Dean

I have a search from that has code in the form,open event to hide the detail
section

Private Sub Form_Open(Cancel As Integer)
Me.Detail.Visible = False
End Sub

I also have code to show the detail section on a button click
Private Sub cmdSearch_Click()
Me.Detail.Visible = True
MsgBox (Me.Detail.Visible)
End Sub

The detail property has the visibility set to false

When i click cmd search the detail section does not get shown even though
the msgbox pops up with true.

Can anyone explain this or offer a solution

thanks in advanced

Dean
 
O

Ofer Cohen

It should work,
Could be that it's look like the detail section doesn't show because there
are no records in the record source of the form.

Rum the form without setting the visibility to false and see if you get the
detail section
 
Top