G
Guest
Simply stated, on a Form, I want to be able to use a command button (or other
method) to tranfer data from one field to another (preferably between
different tables).
In more detail: my Form shows various information in several fields about:
1) a Client, and 2) the client's Spouse, drawn from a Table in the same
Database. From time to time, it will be necessary to "switch" the Client and
Spouse, so that all Client information is shown in the Spouse fields, and
vice versa. Rather than copy-paste all the information from the various
fields by hand, I wanted to create a Command Button in my Form that will make
the switch automatically, by doing the following:
1) Copying all the Client-related fields to temporary storage fields,
2) Copying all the Spouse-related fields into the Client-related fields,
3) Copying all the temporary storage fields into the Spouse-related fields,
Hence switching the Client and the Spouse. Easy concept, but I can't figure
out how to set up the Command Button. Should I use a macro? If so, which
commands? Should I use queries? And, most important, I want to make sure
the transfer is limited to the currently-viewed Record; it should not be a
global switch across the entire Table (obviously).
Can someone lend me some help?
method) to tranfer data from one field to another (preferably between
different tables).
In more detail: my Form shows various information in several fields about:
1) a Client, and 2) the client's Spouse, drawn from a Table in the same
Database. From time to time, it will be necessary to "switch" the Client and
Spouse, so that all Client information is shown in the Spouse fields, and
vice versa. Rather than copy-paste all the information from the various
fields by hand, I wanted to create a Command Button in my Form that will make
the switch automatically, by doing the following:
1) Copying all the Client-related fields to temporary storage fields,
2) Copying all the Spouse-related fields into the Client-related fields,
3) Copying all the temporary storage fields into the Spouse-related fields,
Hence switching the Client and the Spouse. Easy concept, but I can't figure
out how to set up the Command Button. Should I use a macro? If so, which
commands? Should I use queries? And, most important, I want to make sure
the transfer is limited to the currently-viewed Record; it should not be a
global switch across the entire Table (obviously).
Can someone lend me some help?