Wish to populate 2 other fields on After Insert Event

pbassett

Active Member
Joined
May 5, 2004
Messages
358
I have a form that displays FTEs by month for several Departments within a project that the user selects from a combo box.

In addition to updating FTE data, the user can add records. They can enter a new Department and FTEs for the months. However, (this is the sticky part), I have 2 other fields in the table: Tier and Order. This is because these departments are grouped in Tiers (1, 2, or 3) and Order (1-n) so that I can display records in 3 subforms (1 for each Tier) and list them sorted by Order. The user can not be expected to enter the Tier and Order, so I have to do it programatically.

How can I add Tier and Order to the record after the user enters the other fields? I was thinking of the Insert Event procedure, but I'm not sure how to determine which record I just added :(

Thanks,
Pete
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
If it's a new Department, does it have Tier and Order data, or have I misunderstood you?

Denis
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,938
Members
451,730
Latest member
BudgetGirl

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