G
g
Hello experts,
This is what i've used for my subform(FormSub) to interact with my treeview
control
on the Main Form(FormMain) of my database.
Forms!FormMain.FormSub.SourceObject = "Form1"
Forms!FormMain.FormSub.Form.Filter = "SPP = Forms!FormMain.USite"
Forms!FormMain.FormSub.Form.FilterOn = True
SPP = Table column associated in Form1
Forms!FormMain.Usite = Text box control on my FormMain
And it works perfectly fine. Now I need to know how to do to make it open
(The subform) always in a new record. As of now it always open on the first
record with filtered note at the record navigator.
I tried to add DoCmd.GotoRecord , , acNewRec after my code above but it
didn't
work. Also tried to put it in on open, active, load on the Form1 event to
experiment
but it didn't work as well.
I also tried to set Data Entry to YES on Form1 but didn't help. I know there
must be away & I'm hoping you know the answer.
Thank you in advance
This is what i've used for my subform(FormSub) to interact with my treeview
control
on the Main Form(FormMain) of my database.
Forms!FormMain.FormSub.SourceObject = "Form1"
Forms!FormMain.FormSub.Form.Filter = "SPP = Forms!FormMain.USite"
Forms!FormMain.FormSub.Form.FilterOn = True
SPP = Table column associated in Form1
Forms!FormMain.Usite = Text box control on my FormMain
And it works perfectly fine. Now I need to know how to do to make it open
(The subform) always in a new record. As of now it always open on the first
record with filtered note at the record navigator.
I tried to add DoCmd.GotoRecord , , acNewRec after my code above but it
didn't
work. Also tried to put it in on open, active, load on the Form1 event to
experiment
but it didn't work as well.
I also tried to set Data Entry to YES on Form1 but didn't help. I know there
must be away & I'm hoping you know the answer.
Thank you in advance