ted.martin
Registered User.
- Local time
- Today, 04:49
- Joined
- Sep 24, 2004
- Messages
- 743
I have a subform which calls a new Pop-Up form. The user inserts some data into the Pop-Up form, does a calculation and I then want the calculated value to update a field on the Sub-Form.
I have tried this line of VBA (and variations) but it errors saying that the field cannot be found. I must admit, I never quite get this kind of form referencing syntax right without a lot of trial and error. If someone could explain the rationale, that would also be good.
My erroneous code is:
Forms![mainform].[subformname].[Form]!Field.value = PopUpformfield.value
I guess I could do this with an appropriate SQL statement but I was hoping this would be simpler.
Thanks
I have tried this line of VBA (and variations) but it errors saying that the field cannot be found. I must admit, I never quite get this kind of form referencing syntax right without a lot of trial and error. If someone could explain the rationale, that would also be good.
My erroneous code is:
Forms![mainform].[subformname].[Form]!Field.value = PopUpformfield.value
I guess I could do this with an appropriate SQL statement but I was hoping this would be simpler.
Thanks