I have a function call that does not execute in some instances. The function and the variable defining it are on a standard module:
Public strTitle as String
_____________________________________________________________
Public Function Title()
Title = strTitle
End Function
In the onload event of several forms I have a line of code that sets the value of a textbox to Title
Me.txtTitle = Title
The value of strTitle is set before arriving at the form.
Sometimes it works fine. When I step through the code, at the line Me.txtTitle = Title, the code jumps to the Function on the standard module and sets the value of title to the value stored in strTitle, It comes back and sets Me.txtTitle to that value which then displays the title of the form.
The problem is that in other instances the code just jumps over me.txtTitle=Title and doesn't call the function.
It would be greatly appreciated if someone could explain why this would happen.
Thanks for your time.
Public strTitle as String
_____________________________________________________________
Public Function Title()
Title = strTitle
End Function
In the onload event of several forms I have a line of code that sets the value of a textbox to Title
Me.txtTitle = Title
The value of strTitle is set before arriving at the form.
Sometimes it works fine. When I step through the code, at the line Me.txtTitle = Title, the code jumps to the Function on the standard module and sets the value of title to the value stored in strTitle, It comes back and sets Me.txtTitle to that value which then displays the title of the form.
The problem is that in other instances the code just jumps over me.txtTitle=Title and doesn't call the function.
It would be greatly appreciated if someone could explain why this would happen.
Thanks for your time.