mmansfield
Programmer
I have an invoice header/invoice detail type form. I'm using bound fields. Form opens in and works OK in data entry mode. For edits, I have a field in which the user enters an invoice #. In the after update method of this field, I change the recordsources of the parent and child tables to: SELECT * from < > for invoicenum=?<# specified by user>. This works ok too - the form retrieves the desired record, the subform is populated properly - I can change any of the parent or child records. I run into a problem though when I try to add a new child record. I get the error message:<br>"The data was added to the database but the data won't be displayed on the form because it doesn't satisfy the criteria in the underlying record source". My subform adds the foreign key in the before-update event. The subform record IS added properly. You can close the form, call up the invoice and the new child record is there. You just can't see it in the session in which it was created.<br><br>This is my first attempt at an ADP. Has anyone else seen<br>this and know how to work-around?<br><br>Any help would be greatly appreciated.