Hi all,
I've learnt two different ways from this forum to get a value from a text box.
...and...
obviously the latter is must shorter...but is there any downside to it?
I've learnt two different ways from this forum to get a value from a text box.
Code:
dim txtBox as control
dim strTxtBox as string
set txtBox = Forms("frmFormName").Controls("txtBoxName")
strTxtBox = txtBox.value
...and...
Code:
dim strTxtBox as string
strTxtBox = me.txtBoxName.value
obviously the latter is must shorter...but is there any downside to it?