Form showing detail section

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top