I am trying to figure out how to use functions. I have 10 textboxes that will need to be checked for certain things.
I believe I can pass the text from each textbox to the function and then have text returned to the text property of that textbox that made the call via it's change event.
I don't know how to send the textbox's text like that. Do I use THIS ?
Code:Private Sub TxtBxHrs1_Change() If TxtBxHrs1.Text = "." Then 'TxtBxHrs1.Text = "0.00" Call CallChngeTxt(Me.Textbox.text) End If End SubCan someone show me how to use a function that will allow me to send the text from multiple text boxes? And then return back the edited text to those calling textboxes?Code:Function CallChngeTxt() As String CallChngeTxt = "0.00" End Function




Reply With Quote