Hello,
I’m not sure this is apropos as this is actually an extension of a previous post. However, I’d like to change direction on a bit. If this is frowned upon please let me know.
I don’t know if this is even possible but I’ll try to explain what I have in mind.
I have a form (frmPITI) with three text boxes and one command button.
txtYEAR, txtYTD, txtDistribution, & cmdSubmit
What I’d like is if after a date is entered into form’s txtDistribution box then when the cmdSubmit button is clicked the cell in column T that corresponds to the YEAR in column R that matches the YEAR in the form would be updated to the date in the entered in the form.
Example:
If date 12/09/25 is entered into the form’s txtDistribution box, when the cmdSubmit button is clicked, cell T34 would be populated with 12/09/25. That is, the Year in column R because matches the Year in the forms txtYEAR box (both 2025). Column R could be as long as 100 years (albeit I doubt that would ever happen).
As a test, I tried something like this but was not successful.
I should note I tried setting up a table but this old guy could not get it to work. So I was hoping something like this would be easier (at least for me).
Thanks for viewing,
Steve K.
I’m not sure this is apropos as this is actually an extension of a previous post. However, I’d like to change direction on a bit. If this is frowned upon please let me know.
I don’t know if this is even possible but I’ll try to explain what I have in mind.
I have a form (frmPITI) with three text boxes and one command button.
txtYEAR, txtYTD, txtDistribution, & cmdSubmit
What I’d like is if after a date is entered into form’s txtDistribution box then when the cmdSubmit button is clicked the cell in column T that corresponds to the YEAR in column R that matches the YEAR in the form would be updated to the date in the entered in the form.
Example:
If date 12/09/25 is entered into the form’s txtDistribution box, when the cmdSubmit button is clicked, cell T34 would be populated with 12/09/25. That is, the Year in column R because matches the Year in the forms txtYEAR box (both 2025). Column R could be as long as 100 years (albeit I doubt that would ever happen).
As a test, I tried something like this but was not successful.
VBA Code:
Private Sub cmdSubmit_Click()
If txtDistribution > 0 Then
MsgBox "Submit It"
Else
MsgBox "Do Nothing"
End If
End Sub
I should note I tried setting up a table but this old guy could not get it to work. So I was hoping something like this would be easier (at least for me).
Thanks for viewing,
Steve K.