473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

A macro or other means to copy data from one filed to another

1
First time user of this forum.

Can someone suggest the easiest way to automate a process of moving text from one field to another field in a form.

I am setting up (actually adding to) an order entry system, I want to push back details to a table..what I would call a "snapshot table" tblclientorderdetails

I am not that clever with VBA, maybe there is a macro I can use....

I have tried to copy what is currently happening with some of the other fields ....no sucess to date ...the previous Guy who set this system up has done a great job, however he is no longer contactable so I am really stuck, he is using vba, a sql query etc ....please help
Sep 25 '07 #1
2 1410
nico5038
3,080 Expert 2GB
When you want to move the contents of a field, this sounds like creating redundant data, a practise I must warn you for.
When you want however to create a logging of the updates made to an order table, then a simple additional table and an INSERT query might do the trick.
Just create an INSERT query to the snapshow table, where an additional DateTimestamp field has been added. Just set this field in the table definition to have a defaultvalue of =Now() and create an INSERT query in the query editor. Now use the Order's unique key from the form (right-click the criteria field and select the "build" option from the popup to get the proper field from the form).
Now the [Save] button of the form can be used to trigger the INSERT query incase the record is "Dirty" (changed).

Getting the idea?

Nic;o)
Oct 5 '07 #2
puppydogbuddy
1,923 Expert 1GB
First time user of this forum.

Can someone suggest the easiest way to automate a process of moving text from one field to another field in a form.

I am setting up (actually adding to) an order entry system, I want to push back details to a table..what I would call a "snapshot table" tblclientorderdetails

I am not that clever with VBA, maybe there is a macro I can use....

I have tried to copy what is currently happening with some of the other fields ....no sucess to date ...the previous Guy who set this system up has done a great job, however he is no longer contactable so I am really stuck, he is using vba, a sql query etc ....please help
Here are some links to demos/tutorials (with source code) for building an audit trail for an Access database:

http://www.everythingaccess.com/tuto...an-Audit-Trail

http://www.utterangel.com/utterangel.aspx#4

http://www.access-programmers.co.uk/...d.php?t=111015
Oct 5 '07 #3

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

Similar topics

25
by: Andrew Dalke | last post by:
Here's a proposed Q&A for the FAQ based on a couple recent threads. Appropriate comments appreciated X.Y: Why doesn't Python have macros like in Lisp or Scheme? Before answering that, a...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
18
by: qwweeeit | last post by:
Hi all, when I moved from Windows to Linux I choosed Python as my language of reference and as GUI, Qt (not much investigated up to now). Till now I didn't regret but one thing: Python can't act...
5
by: Carl | last post by:
Please can anyone tell me how I can create a macro to save the results of a query as an excel file? The query is called Student List and I would like to save it to "My Documents". We have had...
2
by: Antonio-F100 | last post by:
Hello, I need help creating the code for a macro button on a form that will open a file directory with windows explorer. I have about 500 directories with very long names and only want to...
28
by: Larax | last post by:
Best explanation of my question will be an example, look below at this simple function: function SetEventHandler(element) { // some operations on element element.onclick = function(event) {
0
by: =?Utf-8?B?TGV0emRvXzF0?= | last post by:
I'd like to create a Macro that will sort some raw data, apprx 20k lines, remove some lines based upon a condition in a certain column. Then copy this data into a new spreadsheet and sort the ...
0
by: scolivas | last post by:
I don't know if this is the right place to ask or not...so here it goes... I have an excel spreadsheet with a macro that refreshes data which is pulled from an external data source, which happens...
7
by: NeverLift | last post by:
This is probably answered elsewhere, but I've searched the Web and VBA for Excel manual, find no answers. I have a VBA-coded macro in an Excel workbook that is to open another existing workbook --...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.