subform in datasheet view

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have tblmain and tbl history. I have created a subform within my main
form linking "ID" from two tables. When I open the form in the datasheet
view there will be a "+" by the ID number were if I can collapse the record.
However, the default when I open the form they are already collapsed (-).
How would I make it where it will be closed or "+" ( sorry, i don't know the
right term) when i open the form?
THANK YOU!
 
In the form's Open or Load event, try

Me.SubdatasheetExpanded = False
 

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

Back
Top