var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Link Please
Been searching the web and online tutorials for an alternative to:
Where I can call the form control directly by name and either get or set its value. Kinda like:
For Each ctl In MyForm.Controls
Without the For each loop.
MyForm.Controls.name = namestring
MyForm.Controls.value = valuestring
namestring = MyForm.Controls.name
valuestring = MyForm.Controls.value
Not having any luck finding an example. Is my code correct?
Anyone have a link to such a resource or example? Please supply link/url.
Just don't want to go through all the interations of "for each => next" to get the right field. Want to get/assign directly.
Didn't you try it?
Originally Posted by dbsupport4me
There's loads of ways - looping through would defo be wrong.
name = Me.ControlName.name
name = Forms!MyForm!ControlName.name
name = Forms("MyForm").Controls("ControlName").name
ur codings are working excelent.
All I needed was:
Which sets all the properties to ctl, name, value, etc., when "Fld_Nam" is the correct Form Field Name or the "Control Name".
Dim MyForm as Form, ctl as Control
Set ctl = MyForm.Controls(Fld_Nam)