Find record by autonumber and move record to different table

DanJames

Registered User.
Local time
Today, 10:12
Joined
Sep 3, 2009
Messages
78
Hi,

Any ideas on how I can move the current record on the form, from one table called "currentclients" to another table called "cancelledclients".

The two tables have the same structure and the autonumber for "currentclients" is client-id. I have client-id in "cancelledclients" but with the format number.

If you know the VBA to move the selected record's row from "currentclients" to "cancelledclients" it would be great!

Thanks in advance,
Daniel James
 
The status of a record is data. The easiest way to handle your situation is add a field called IsCurrent to your table and set its value to false for a given record.
Then you can write a query called qCurrentClient that looks like ...
Code:
SELECT * FROM tClient WHERE IsCurrent
...and for cancelled clients ....
Code:
SELECT * FROM tClient WHERE Not IsCurrent
Generally you have a design problem if you need to move records. A far easier solution is always to edit a record's attributes.
Cheers,
Mark
 
Thank you Mark,

It has worked perfectly!

Cheers,
Daniel
 

Users who are viewing this thread

Back
Top Bottom