I'm trying to use ghudson's File Browsing form on a subform on my main form. The code is written to have a static file location to look for files. I want to make that dynamic based on the record that I'm viewing.
I thought about doing it via VBA, and taking the value of the Parent Form's FirstName and LastName fields and assigning them to strings. My problem is that I don't know how to do that.
So, in VBA, how do I assign the value of a text box from the parent form to a string variable in the subform? I don't think I can link master and child fields in the form because the data sources on the parent and child forms are not related in any way.
I thought about doing it via VBA, and taking the value of the Parent Form's FirstName and LastName fields and assigning them to strings. My problem is that I don't know how to do that.
So, in VBA, how do I assign the value of a text box from the parent form to a string variable in the subform? I don't think I can link master and child fields in the form because the data sources on the parent and child forms are not related in any way.