PC Review


Reply
Thread Tools Rate Thread

Closing form and updating a form

 
 
Simon
Guest
Posts: n/a
 
      4th Dec 2006
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

 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      4th Dec 2006
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
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie- updating linked tables on form closing Keith R Microsoft VB .NET 2 3rd Dec 2006 04:27 AM
Updating a combo box without closing form =?Utf-8?B?Um9u?= Microsoft Access Forms 4 6th Jun 2006 05:01 PM
Updating a table when closing a form =?Utf-8?B?ZG12MTk0Nw==?= Microsoft Access Forms 1 23rd Jan 2006 06:23 PM
Updating a table after closing a form. =?Utf-8?B?RnJhbms=?= Microsoft Access 3 16th Aug 2005 09:32 PM
Opening Closing and updating subform or form John Evans Microsoft Access Forms 3 23rd Aug 2003 03:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:44 AM.