PC Review


Reply
Thread Tools Rate Thread

Copy part of a record

 
 
Ngan Bui
Guest
Posts: n/a
 
      17th Sep 2003
I have a complaints form that has about 30 fields in it.
The first part is the person's information (name, address,
phone, etc). Second is the trip information (drop off
address, time, trip type, etc). Third is the complaint
information (complaint type, summary, etc).

Let's say a customer calls in about two complaints for one
trip (it was late and the driver was rude). The service
rep needs to enter this as two records, but the person's
info and trip info are the same.

So, the rep enters all the information in the first record
for the first complaint. The rep would then click on a
Duplicate Record button. The button would go to a new
record, copy the person's info and trip info from the
previous record, and leaving the complaint info blank for
the rep to fill in manually.

Is there an easy function to do this? I was thinking of
using an append query (db.execute insert), but then I
can't capture the new PK to go to that record.

The only way I came up with is to use the Dim statement,
capture the current field infos, go to a new record, and
insert into the new fields. However, this requires typing
the new and old field names on each line...that's 20
records to do like:
forms!newrecord = forms!oldrecord


Is there anything else i can do?
Ngan

 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      17th Sep 2003
"Ngan Bui" <(E-Mail Removed)> wrote in message
news:034601c37d3b$e1a64aa0$(E-Mail Removed)...
> I have a complaints form that has about 30 fields in it.
> The first part is the person's information (name, address,
> phone, etc). Second is the trip information (drop off
> address, time, trip type, etc). Third is the complaint
> information (complaint type, summary, etc).
>
> Let's say a customer calls in about two complaints for one
> trip (it was late and the driver was rude). The service
> rep needs to enter this as two records, but the person's
> info and trip info are the same.


Have a second table with a one-to-many relationship to the first. Each "header"
record can then have as many complaint entries as you want and you only enter the
header stuff once. Use a form/subform for the data entry.


 
Reply With Quote
 
Ngan Bui
Guest
Posts: n/a
 
      18th Sep 2003
Actually, this is an exception to the rule. Needing to
duplicate the information only happens about 10% of the
time. Do you still think I should have a second table?

Ngan

>-----Original Message-----
>"Ngan Bui" <(E-Mail Removed)> wrote in message
>news:034601c37d3b$e1a64aa0$(E-Mail Removed)...
>> I have a complaints form that has about 30 fields in it.
>> The first part is the person's information (name,

address,
>> phone, etc). Second is the trip information (drop off
>> address, time, trip type, etc). Third is the complaint
>> information (complaint type, summary, etc).
>>
>> Let's say a customer calls in about two complaints for

one
>> trip (it was late and the driver was rude). The service
>> rep needs to enter this as two records, but the person's
>> info and trip info are the same.

>
>Have a second table with a one-to-many relationship to

the first. Each "header"
>record can then have as many complaint entries as you

want and you only enter the
>header stuff once. Use a form/subform for the data entry.
>
>
>.
>

 
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
Lookup values & copy record or move to new record if doesn't exist =?Utf-8?B?QW5uIGluIENB?= Microsoft Access Form Coding 0 4th Jun 2007 09:06 PM
How to copy Access record to make new record in a secure form? =?Utf-8?B?TWFydHk=?= Microsoft Access Forms 0 1st Sep 2005 03:16 PM
Do not show a part of a record =?Utf-8?B?dGhlOHRoZG92ZQ==?= Microsoft Access Queries 3 20th Jul 2005 10:37 PM
Duplicating part of a record =?Utf-8?B?TWFyYw==?= Microsoft Access Forms 3 28th Jan 2005 06:05 PM
Sub record not associated with main record when copy record button is used Ron V Microsoft Access Form Coding 0 21st May 2004 05:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:33 AM.