The following is a quick example of what I am trying to do:
---
Private Sub MonthCombo_Afte rUpdate(Cancel As Integer)
[test] = First_Saturday( )
End Sub
---
Basically when the user changes the month in the form header it will update all the patch windows using their particular function.
MonthCombo is a control box in a form
[test] is a textbox in a form
First_Saturday( ) is a function in a module named DateCalculation .
Originally I had attached each function directly to related textbox as default value which worked just fine until I figured it need the flexibility of changing the month value.
I had changed a function to replace Month(Date) with [Form]![test]![MonthCombo] which works, but only as the form loads. I need the data to update if the month is changed.
This is the following error I get as the AfterUpdate runs...
The expression After Update you entered as the event property setting produced the following error: Procedure declaration does not match description of event or procedure having the same name.
---
Private Sub MonthCombo_Afte rUpdate(Cancel As Integer)
[test] = First_Saturday( )
End Sub
---
Basically when the user changes the month in the form header it will update all the patch windows using their particular function.
MonthCombo is a control box in a form
[test] is a textbox in a form
First_Saturday( ) is a function in a module named DateCalculation .
Originally I had attached each function directly to related textbox as default value which worked just fine until I figured it need the flexibility of changing the month value.
I had changed a function to replace Month(Date) with [Form]![test]![MonthCombo] which works, but only as the form loads. I need the data to update if the month is changed.
This is the following error I get as the AfterUpdate runs...
The expression After Update you entered as the event property setting produced the following error: Procedure declaration does not match description of event or procedure having the same name.
Comment