A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Create A New Record From Same Data



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2004, 12:48 AM
Cassandra
external usenet poster
 
Posts: n/a
Default Create A New Record From Same Data

My data entry form has thirty one fields. After I go to a new record and enter
all the fields, how can I create another new record out of the same data?
Sometimes when I am entering new records, only two or three fields change from
one new record to another. If I could create a new record out of the same data
and then edit the two or three fields, it would save a lot of data entry time.

Thanks!

Cassandra


  #2  
Old May 4th, 2004, 01:40 AM
Dirk Goldgar
external usenet poster
 
Posts: n/a
Default Create A New Record From Same Data

"Cassandra" wrote in message
nk.net
My data entry form has thirty one fields. After I go to a new record
and enter all the fields, how can I create another new record out of
the same data? Sometimes when I am entering new records, only two or
three fields change from one new record to another. If I could create
a new record out of the same data and then edit the two or three
fields, it would save a lot of data entry time.

Thanks!

Cassandra


If you want this to happen automatically, you can use the form's
AfterUpdate or AfterInsert event to set the Default Value property of
each bound control to the value it has for the record that was just
saved. For example:

Private Sub Form_AfterInsert()

With Me!Control1
.DefaultValue = Chr(34) & .Value & Chr(34)
End With

With Me!Control2
.DefaultValue = Chr(34) & .Value & Chr(34)
End With

With Me!Control3
.DefaultValue = Chr(34) & .Value & Chr(34)
End With

' and so on ...

End Sub

There are ways to condense this code so as not to have to name each
control individually, but this is the basic idea.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


  #3  
Old May 4th, 2004, 12:42 PM
Jen
external usenet poster
 
Posts: n/a
Default Create A New Record From Same Data

"Cassandra" wrote in message
nk.net...
My data entry form has thirty one fields. After I go to a new record and

enter
all the fields, how can I create another new record out of the same data?
Sometimes when I am entering new records, only two or three fields change

from
one new record to another. If I could create a new record out of the same

data
and then edit the two or three fields, it would save a lot of data entry

time.

Thanks!

Cassandra


You could choose to show "Record Selectors" in the form (a narrow column to
the left of the form with a right pointing arrow at the top), right click
this column, choose copy, go to a new blank entry, right click the same
column and choose paste.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.