T
tao
Hi
I am testing a MS access app on Access2007 SP1. There a form which a sub
forms. The relationship like this:
MainForm include a SubForm, the SubForm has another SubForm1. So the
relation is:
Form: MainForm -> SubForm -> SubForm1
RecordSource: rsMain rsSub rsSub1
In Office 2000 & 2003, everything working fine. But when running on
2007. The SubForm1's RecordSource become blank on runtime. If I switch
to design view and switch back to Form view. It works fine again. It
seems Access 2007 just don't like the deep subforms.
I try to put the code like this on SubForm1's active event:
Me.RecordSource = "rsSub1"
Or SubForm's active event:
Me.SubForm1.RecordSource = "rsSub1"
It's just not work as the event never fire under SubForm1.
And in the mainForm, I try the code like this:
Forms![MainForm]![SubForm]![SubForm1].RecordSource
Access2007 just complain the object not exist at all. But if I test the
code like this:
Forms![MainForm]![SubForm]![SubForm1].Name
It can return "SubForm1"
I just don't what's going on with Access2007. How can I set RecordSource
correctly?
Cheers,
Tao
I am testing a MS access app on Access2007 SP1. There a form which a sub
forms. The relationship like this:
MainForm include a SubForm, the SubForm has another SubForm1. So the
relation is:
Form: MainForm -> SubForm -> SubForm1
RecordSource: rsMain rsSub rsSub1
In Office 2000 & 2003, everything working fine. But when running on
2007. The SubForm1's RecordSource become blank on runtime. If I switch
to design view and switch back to Form view. It works fine again. It
seems Access 2007 just don't like the deep subforms.
I try to put the code like this on SubForm1's active event:
Me.RecordSource = "rsSub1"
Or SubForm's active event:
Me.SubForm1.RecordSource = "rsSub1"
It's just not work as the event never fire under SubForm1.
And in the mainForm, I try the code like this:
Forms![MainForm]![SubForm]![SubForm1].RecordSource
Access2007 just complain the object not exist at all. But if I test the
code like this:
Forms![MainForm]![SubForm]![SubForm1].Name
It can return "SubForm1"
I just don't what's going on with Access2007. How can I set RecordSource
correctly?
Cheers,
Tao