I don't know what you mean by "clear the details and save the record."
Normally you have a main form and sub form, and the subform keeps records related to the main form record.
It sounds like you want to add records to the sub form related to the main form, then click a button which clears the data entry you just did, and then saves the data somewhere else. Is this correct? If so, why?
The autonumber field error in this case would be because you are taking a number from one table/field (on your sub form?) and trying to push it into another table's autonumber field. You can't do this. auto means auto. If you want to save the auto number generated in the first sub form, change the autonumber field in the second table to Number (integer).
Does this help?
mmcdonal
|