Hi,
I want to create checkbox beside textbox so that if the checkbox is checked then the textbox will appears as a column in a datasheet(ie if the Project Checkbox is checked, I want the column "Project" to appear). I got everything ok but ... since I got a hundred of textbox how can I avoid coding something like that
stOpenArgs
if Me!chkField1 then
stOpenArgs = stOpenArgs & Field1
if Me!chkField2 then ....
...
...
...
if chkField200 then ...
I want to create checkbox beside textbox so that if the checkbox is checked then the textbox will appears as a column in a datasheet(ie if the Project Checkbox is checked, I want the column "Project" to appear). I got everything ok but ... since I got a hundred of textbox how can I avoid coding something like that
stOpenArgs
if Me!chkField1 then
stOpenArgs = stOpenArgs & Field1
if Me!chkField2 then ....
...
...
...
if chkField200 then ...