:banghead: on this one so I would appreciate any help.
I'll try and explain my problem as clear as I can. I am working in Access 2007 and win7
I have a main form that is based on a table.Contained in that form are 3 subforms all built on queries from join tables for many - to - many relationships.
This arrangement works fine for adding records manually with good control and no duplicates produced. So I am happy with the way it all works. So Far
Now comes the crunch!
I want to auto populate some of the fields on the main form and the subforms using 'farmed' information from tinterweb. Was doing fine with this and have no problems populating fields on the main form (including comboxes looking up tables with 'NotInList' criteria), populating tables and saving new records with the exception of the subforms.
No Mater what I seem to try I cannot gain reference to the controls on the subforms with VBA
I have tried
Me!subform.form.control
Forms!mainform!subform.form.control
And various other hashes but always get the same error " Access can't find control blah d blah"
I can't even appear to set the focus on the sub through VBA
I am obviously missing something????????
I have spent days searching for an answer to no avail
Can anyone shed some light on this or point me in the right direction please?
I'll try and explain my problem as clear as I can. I am working in Access 2007 and win7
I have a main form that is based on a table.Contained in that form are 3 subforms all built on queries from join tables for many - to - many relationships.
This arrangement works fine for adding records manually with good control and no duplicates produced. So I am happy with the way it all works. So Far
Now comes the crunch!
I want to auto populate some of the fields on the main form and the subforms using 'farmed' information from tinterweb. Was doing fine with this and have no problems populating fields on the main form (including comboxes looking up tables with 'NotInList' criteria), populating tables and saving new records with the exception of the subforms.
No Mater what I seem to try I cannot gain reference to the controls on the subforms with VBA
I have tried
Me!subform.form.control
Forms!mainform!subform.form.control
And various other hashes but always get the same error " Access can't find control blah d blah"
I can't even appear to set the focus on the sub through VBA
I am obviously missing something????????
I have spent days searching for an answer to no avail
Can anyone shed some light on this or point me in the right direction please?