I have a main form (frmRadio) with a subform (subfrmRadioFrequencies). On the subform is a combo box that opens a third form (frmFrequencyEdit) on the OnNotInList event. I am trying to requery the subform after entereing a new record in frmFrequencyEdit but it keeps bombing out. I added this code to the OnClose event of frmFrequencyEdit:
Forms!frmRadio.Form!subfrmRadioFrequencies.Form.Requery
but Access keeps trying to find the field subfrmRadioFrequencies no matter if or where I have Form! or Form. etc. I've quadruple-checked the spellings and I've used the exact same syntax in a different database and it works. Am I just going nuts or have I missed something here?
Edit: It seems like any combination I can come up with of .'s and !'s and 'Form's either produces a user-defined error or refers to the subform as a field instead of a form. This is really ticking me off...
Forms!frmRadio.Form!subfrmRadioFrequencies.Form.Requery
but Access keeps trying to find the field subfrmRadioFrequencies no matter if or where I have Form! or Form. etc. I've quadruple-checked the spellings and I've used the exact same syntax in a different database and it works. Am I just going nuts or have I missed something here?
Edit: It seems like any combination I can come up with of .'s and !'s and 'Form's either produces a user-defined error or refers to the subform as a field instead of a form. This is really ticking me off...
Last edited: