On first reading you could stop at ** and resume at the later ** as I think the problem must be in the part before the first **!
Field X on Form A is the key field for another table T. User enters, eg, "nnnn" in Field X.
If Form A code discovers "nnnn" is not the key to an existing record in table T
Form A opens Form B with acNewRecord and OpenArgs = "nnnn"
When Form B opens, it places "nnnn" in a field Y (which is unbound, not the key field for the new record on Form B.) **
User can, if wished, edit field Y, and then fill in rest of the new Table T record.
When user clicks Save on Form B, Field Y is copied into the key field for the new Table T record and the record is saved.
User can then hit "Back to Form A".
If "nnnn" has been changed to, eg, "nnnnpq" while user is in Form B, the "Back to ... " button resets the field in Form A with the new value (i.e. replaces "nnnn" by "nnnnpq" in Field X on Form A.
** Sounds complicated, but it all works just FINE! Except .... (and I believe this has nothing to do with all that, beyond ** above) ... I get a mystery error message, AFTER Form B has been opened but BEFORE the user does anything at all.
This mystery message just says "Property not found", and the only button on the message box is "OK"! There are no end/debug/help buttons, no Error #, and absolutely no indication of what property is "not found" or what it's a property of, or where I might find IT!!
I've put a messagebox to myself in the OnOpen code for Form B, after it's done its stuff with the OpenArgs. I get that message BEFORE the mystery message, but I get the mystery message before I've done anything at all in Form B.
Any ideas about the cause/source of this message?????
Field X on Form A is the key field for another table T. User enters, eg, "nnnn" in Field X.
If Form A code discovers "nnnn" is not the key to an existing record in table T
Form A opens Form B with acNewRecord and OpenArgs = "nnnn"
When Form B opens, it places "nnnn" in a field Y (which is unbound, not the key field for the new record on Form B.) **
User can, if wished, edit field Y, and then fill in rest of the new Table T record.
When user clicks Save on Form B, Field Y is copied into the key field for the new Table T record and the record is saved.
User can then hit "Back to Form A".
If "nnnn" has been changed to, eg, "nnnnpq" while user is in Form B, the "Back to ... " button resets the field in Form A with the new value (i.e. replaces "nnnn" by "nnnnpq" in Field X on Form A.
** Sounds complicated, but it all works just FINE! Except .... (and I believe this has nothing to do with all that, beyond ** above) ... I get a mystery error message, AFTER Form B has been opened but BEFORE the user does anything at all.
This mystery message just says "Property not found", and the only button on the message box is "OK"! There are no end/debug/help buttons, no Error #, and absolutely no indication of what property is "not found" or what it's a property of, or where I might find IT!!
I've put a messagebox to myself in the OnOpen code for Form B, after it's done its stuff with the OpenArgs. I get that message BEFORE the mystery message, but I get the mystery message before I've done anything at all in Form B.
Any ideas about the cause/source of this message?????
Comment