Hi,
I'm using Access 2003. I have a main form that has a dropdown box of site IDs. When a user selects a site ID, and event is triggered that sets the recordsource on a subform. This is a one to many relationship, so the subform can have multiple values.
I have a hidden field that holds a value based on the recordsource for each record on the subform. Right now, I get a 2424 error when I try to run the form. It says the form control doesn't exist, but it does. Also, if I hit end instead of debug it finds the field and the value.
My question is, instead of even having to mess with a hidden value, can I get the value of the record from the recordsource directly from the oncurrent event of the subform?
I'm using Access 2003. I have a main form that has a dropdown box of site IDs. When a user selects a site ID, and event is triggered that sets the recordsource on a subform. This is a one to many relationship, so the subform can have multiple values.
I have a hidden field that holds a value based on the recordsource for each record on the subform. Right now, I get a 2424 error when I try to run the form. It says the form control doesn't exist, but it does. Also, if I hit end instead of debug it finds the field and the value.
My question is, instead of even having to mess with a hidden value, can I get the value of the record from the recordsource directly from the oncurrent event of the subform?