The following won't work, but I wonder how it should be changed to work ?
What I'm attempting to get working is, the form is Datasheet mode and there are a number of text boxes... I need to know if the current one is the last (in range Texbox1 to Textbox50). If I can get the above working my plan was to loop back, until the text is not "". Unless a better method exists?
Thanks.
Code:
Dim ctl As Control
For Each ctl In Form_Mysubform.Controls
Debug.Print ctl.ControlType, ctl.Value, ctl.Name
Next
What I'm attempting to get working is, the form is Datasheet mode and there are a number of text boxes... I need to know if the current one is the last (in range Texbox1 to Textbox50). If I can get the above working my plan was to loop back, until the text is not "". Unless a better method exists?
Thanks.