Form Event Procedure Help

bkatsma

New Member
Joined
Jan 9, 2013
Messages
20
I'm having some trouble coming up with a solution. I have three fields (generally entered in this order); Actual_Hours, Billed_Hours & Billed_Amount. I'm trying to get them working together, to establish a starting point, when Actual_Hours is entered.

I was able to auto fill Billed_Hours from Actual_Hours using the AfterUpdate event. So if I put in (5) for Actual_Hours, Billed_Hours updates to (5) as well. Here is my problem. When (5) is automatically entered into the Billed_Hours, I'm looking for Billed_Amount to automatically update as well to Billed_Hours * 25.

The below code 'works' if I change the Billed_Hours, but I'm looking to do it automatically.

Code:
Private Sub Billed_Hours_AfterUpdate()
Me.Billed_Amount = Me.Billed_Hours * 25
End Sub
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Seems to me, billed amt should never be saved. It is always calculated in a query.
In a form, again it is a calculated field using the propery, not an event.
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,535
Members
449,316
Latest member
sravya

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