PC Review


Reply
Thread Tools Rate Thread

Command Button - to open a new record with some of the data from the current record

 
 
Mike Hagstrom
Guest
Posts: n/a
 
      17th Sep 2003
Good Day -

I am working on a limousine reservation system, which currently works just
fine.

When a reservation is taken, sometimes there is a "round trip" reservation -
i.e. the customer wants to go somewhere and return at a later date and time.

We would like to use a command button that would open a new record and take
some of the data from the underlying reservation record and insert the
selected data in the new form.

Can this be done? And if so, can you help with the "how". I've tried any
number of combinations without success.

Mike Hagstrom



 
Reply With Quote
 
 
 
 
Rod Scoullar
Guest
Posts: n/a
 
      17th Sep 2003
Mike,

It can certainly be done.

If both forms are open at the same time then you could copy the values from
controls on one form to corresponding controls on the other.

If the new record opens in place of the 'underlying reservation record' then
you have to save the required data in variables before opening the new
record and then copy them into the corresponding controls.

Depending on how well the database has been designed it may only be a matter
of copying one or two fields. Eg. if you store the customer details in a
separate table to the reservation details then you would only have to copy
the customer id to the new reservation to have all the customer details
available.

Rod


 
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
Command button to replace current record's field Song Microsoft Access 3 29th Mar 2010 08:18 PM
Command Button - Open report using current record MikeT Microsoft Access 3 21st Mar 2009 07:48 PM
Copying data from current record into a new record using a command button Scott Microsoft Access Form Coding 1 8th Jul 2007 07:23 AM
How do I print a report off a command button, current record only =?Utf-8?B?THlsZSBEYXZpcw==?= Microsoft Access Reports 9 26th Oct 2005 11:40 PM
Button to save current record and open new record? =?Utf-8?B?QmFkSm9vSm9vSmVu?= Microsoft Access Forms 3 1st Apr 2005 12:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:48 PM.