Hello DBForum,
This is my first post so please go easy :)
(I searched for similar threads but didn't find any related to what I'm looking for)
I believe my problem should be simple to resolve but I have tried every variation I can think of and am still stuck.
I am trying to modify the MS Access "Contacts" Web database Microsoft provides as a Template. I have added another level of the forms already displayed - basically when the NewForm command button is clicked a new "Main" form opens with the same structure of the original (nvcNavigationControl, NavigationSubform, sfrNameList and DS).
My issue is that on the new form I cannot reference a Command Button on the NavigationSubform from the "On Click" event in the sfrNameList Subform.
Basically, when I click a "Contact" in the sfrNameList I want to Enable the Command Button - EditDetails (which I have set to Disabled when the form opens).
Searching on Google I have found the below as the format that should be used to reference a Subform but am unable to get it to work.
Forms!YourMainFormName.YourSubformControlName.Form .YourControlName
Which in this case would translate to:
Forms!Main.NavigationSubform.Form.cmdEditDetails
However, I still receive the same error that the Control name is misspelled or does not exist. I have provided some print screens which I hope will help explain the issue.
Any help is truly appreciated!
Thank you in advance!
This is my first post so please go easy :)
(I searched for similar threads but didn't find any related to what I'm looking for)
I believe my problem should be simple to resolve but I have tried every variation I can think of and am still stuck.
I am trying to modify the MS Access "Contacts" Web database Microsoft provides as a Template. I have added another level of the forms already displayed - basically when the NewForm command button is clicked a new "Main" form opens with the same structure of the original (nvcNavigationControl, NavigationSubform, sfrNameList and DS).
My issue is that on the new form I cannot reference a Command Button on the NavigationSubform from the "On Click" event in the sfrNameList Subform.
Basically, when I click a "Contact" in the sfrNameList I want to Enable the Command Button - EditDetails (which I have set to Disabled when the form opens).
Searching on Google I have found the below as the format that should be used to reference a Subform but am unable to get it to work.
Forms!YourMainFormName.YourSubformControlName.Form .YourControlName
Which in this case would translate to:
Forms!Main.NavigationSubform.Form.cmdEditDetails
However, I still receive the same error that the Control name is misspelled or does not exist. I have provided some print screens which I hope will help explain the issue.
Any help is truly appreciated!
Thank you in advance!