Simon,
Something like this?...
DoCmd.RunCommand acCmdSaveRecord
Forms!frmOrder!DeliveryNumber = Me.DeliveryID
DoCmd.Close acForm, Me.Name
--
Steve Schapel, Microsoft Access MVP
Simon wrote:
> I have a order form that has a button that lets me add another
> Delivery address for the Account customer that is placing the order.
>
> When i press the buttotn it opens up the forms and puts the AddressID
> number on it and also the account number is related to
>
> I how want a button on the Delivery address form that will close the
> form and put the DeliveryID number into the frmOrder.DeliveyrNumber
>
>
> Thanks
>
|