473,796 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do you get data fields to carry over to a new record?

5 New Member
Is there a simple way, without setting up a module, to get certain data fields to carry over to a new record as well in MS Access 2003. I've tried alot of modifications to the "default value" but none of them seem to work.

If anyone can help me out it would be greatly appreciated.
Jun 5 '07 #1
13 11632
ADezii
8,834 Recognized Expert Expert
Is there a simple way, without setting up a module, to get certain data fields to carry over to a new record as well in MS Access 2003. I've tried alot of modifications to the "default value" but none of them seem to work.

If anyone can help me out it would be greatly appreciated.
  1. Do you want ALL Fields carried over to the New Record or selective ones?
  2. Do you want these values automatically transferred over to the New Record, or when you enter these Fields?
  3. Once data is entered into a Field, does it become the new default Value for that Field?
Jun 5 '07 #2
Rabbit
12,516 Recognized Expert Moderator MVP
Is there a simple way, without setting up a module, to get certain data fields to carry over to a new record as well in MS Access 2003. I've tried alot of modifications to the "default value" but none of them seem to work.

If anyone can help me out it would be greatly appreciated.
Does this table have a unique field that increments for each record added?
If it does then you can use a DMax embedded in a DLookup.
Jun 5 '07 #3
wavbuser
5 New Member
  1. Do you want ALL Fields carried over to the New Record or selective ones?
  2. Do you want these values automatically transferred over to the New Record, or when you enter these Fields?
  3. Once data is entered into a Field, does it become the new default Value for that Field?
Sorry for being unclear before:

I only need selective fields to be carried over, not all.

I'm actually using a form so, when the user decides to insert a new record, I want certain fields from the previous record to carry over.

Yes, once the values in the selective fields are modified on the form, i want those value to become the new default values.
Jun 5 '07 #4
wavbuser
5 New Member
Does this table have a unique field that increments for each record added?
If it does then you can use a DMax embedded in a DLookup.
No, unfortunately the records do not have any fields like that.
Jun 5 '07 #5
Rabbit
12,516 Recognized Expert Moderator MVP
You'll probably have to add one then, unless ADezii has another idea.
Jun 5 '07 #6
wavbuser
5 New Member
Ok i've found that solution for those of you with a similar problem, google "previous record" instead of "carry over", it works alot better, anyways, i found the solution in another forum there.

http://www.thescripts. com/forum/thread203454.ht ml

incase it doesnt work here is the main thing you need:

It *is* a field property.

In the AfterUpdate event of the control (let's say it is called
theValue), put

theValue.defaul tvalue = theValue.value

If theValue is text, do this:

theValue.defaul tvalue = "'" & theValue.value & "'"
http://www.thescripts. com/forum/thread203454.ht ml
Jun 5 '07 #7
Rabbit
12,516 Recognized Expert Moderator MVP
Ok i've found that solution for those of you with a similar problem, google "previous record" instead of "carry over", it works alot better, anyways, i found the solution in another forum there.

http://www.thescripts. com/forum/thread203454.ht ml

incase it doesnt work here is the main thing you need:



http://www.thescripts. com/forum/thread203454.ht ml
This solution uses a code module which is what you wanted to avoid in the first place.
Jun 5 '07 #8
ADezii
8,834 Recognized Expert Expert
Sorry for being unclear before:

I only need selective fields to be carried over, not all.

I'm actually using a form so, when the user decides to insert a new record, I want certain fields from the previous record to carry over.

Yes, once the values in the selective fields are modified on the form, i want those value to become the new default values.
Only a couple of lines of Code will do the trick for you.
  1. For each Control that you wish to carry over its value, set the Control's Tag Property to Carry.
  2. Place this code in the AfterUpdate() Event of the Form.
  3. For each Control that you elected to carry over, set its Tag Property to Carry, its Default Value will be reset and will subsequently appear in New Record mode.
  4. Let me know how you make out with this.
Expand|Select|Wrap|Line Numbers
  1. Dim ctl As Control
  2.  
  3. For Each ctl In Me.Controls
  4.   If ctl.Tag = "Carry" Then
  5.     ctl.DefaultValue = "'" & ctl.Value & "'"
  6.   End If
  7. Next
Jun 5 '07 #9
ADezii
8,834 Recognized Expert Expert
Ok i've found that solution for those of you with a similar problem, google "previous record" instead of "carry over", it works alot better, anyways, i found the solution in another forum there.

http://www.thescripts.com/forum/thread203454.html

incase it doesnt work here is the main thing you need:



http://www.thescripts.com/forum/thread203454.html
Be advised that this approach does not take into consideration the carrying over of values for 'selective' Controls, see my response in Message #9.
Jun 5 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1696
by: LarryH | last post by:
I am new to Access and have one small problem I can't seem to solve. I have a database with multiple order records for people. Each person has a unique ID, and is on the datbase multiple times, but only one of each record has the address, and phone, etc. I need to copy the data from that record into all records with the same IDs. I know I can creat multiple tables, but I need it in a single table so it can be exported to a...
0
1500
by: David Lao | last post by:
Hi All, I need a way to extract Data value from the Outlook form when the new mails arrive. The data fields are provided. Thanks. David
13
1870
by: MLH | last post by:
I have a number of reports that are essentially black 'n white prepared forms (picture an IRS form 1040). The data fields are overlaid onto the report fields in the correct positions and I would to empower the user to use blue/red/black - maybe more - as the forecolor property for the textbox controls holding data so that the black & white forms will have all the printed data shown in the desired color. I put a textbox control on the...
1
5999
by: pconrad | last post by:
I've got a syslog server posting to MS SQL. It works great as far as posting all the data. However, it puts all the useful information into one big text field called message. How can I parse that data & place into separate data fields? Sample text: 3625: Jun 9 13:35:54.392: %CRYPTO-MESSAGE_UP: (Server) Mode=CLIENTMODE Client_type=UNKNOWN User=user Group=TGROUP2 Client_public_addr=165.217.90.165 Server_public_addr=57.13.107.18...
0
936
by: ASMJ | last post by:
Hi, I have a web page with some data fields contained in the panel and a grid view below it. The data fields are not placed in the position in which they are designed when I run the appln. After a particular width, the data fields is moved to the next line when it is rendered. The screen looks hapazard. Can anyone help me to fix this problem? Thanks ASMJ
1
5553
by: new | last post by:
I have data for each week in a single table. I need to export this data to a separate flat file for each week. Any ideas? DB2 SQL Query export to flat files as a function of data on each record
3
1220
hariharanmca
by: hariharanmca | last post by:
Can any1 explain the Diff Between Data Set and Record Set in detail
0
1825
by: sijugeo | last post by:
Hi, I Have a MS word template field which have certain data fields. I want to populate the data fields using the data retrived from SQL db. How can I do this? Thanks in advance Siju george
0
1057
by: anthony lapenna | last post by:
How do I set default values so the data entries carry over to a new record
0
10223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.