Moving record from one form to another.

P-C-Surgeon

Board Regular
Joined
Sep 24, 2004
Messages
115
I have a form that lists the records of current jobs. Once I complete these jobs, I would like to move these records to another form (for example-complete jobs). What is the best way to accomplish this task? By the way, my current form does have a subform that also keeps data of the current record showing on this form.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Personnaly I will rather add a flag that will indicate the Job is completed or not in the table. After it is easier to search and manipulate the date.

The other option is with an append query that will copy the selected into the new table.

insert into tbl_cplt select * from tbl_inprogresse where job_id = ....
 
Upvote 0
P-C-Surgeon

You should add a field that indicates whether a job is completed or not.

Then you could add command buttons to filter the records to show completed, incomplete and all.
 
Upvote 0
Applying multiple filters with command buttons

Thanks for the suggestions. I have figured out how to apply a single filter with one command button which shows the completed jobs, but is there a way to have the multiple command buttons for the current, completed, and all jobs. Anyway you can give me an example. Thanks for your time.
 
Upvote 0
How have you done it with the one command button?

I'm sure you could use similar code to do the other command buttons.

I'm afraid I couldn't really post an example as the code would need to be specific to your particular setup/tables/forms/etc.

Perhaps you could post the code that you currently have.
 
Upvote 0
You could also use a combo box with the list of possible Status codes, and have a Case statement in the AfterUpdate event which selects a filter to apply to the subform.
Uses less real estate than a bunch of buttons, and can be updated as your needs change.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,893
Messages
6,162,662
Members
451,781
Latest member
DylantheD

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top