M
Marcel Drost via AccessMonster.com
Hi;
I need to update a label.control dynamically (there are about a 1000 and I have them all listed in a table...
I have this:
Dim variable As String
Set db = CurrentDb
Set mdf_query = db.OpenRecordset("MDF_query")
mdf_query.movefirst
variable = mdf_query!MFS_Hokje_id_on_form 'labelnametable/colom
if x=0 then
me![variable].backcolor = 1677752
end if
the me![variable] does not work and I need the variable (variable = controlname such as label434 from the table)I tried the with thing, that didn't help (it's me)
the last time this site was a great help, meybe it can be one more time? (help!!!)
mucho thanxs
Marcel
*****************************************
* This message was posted via http://www.accessmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.accessmonster.com/Uwe/Abuse.aspx?aid=5dd41297a89f4db8b111b5f7c7a21cfc
*****************************************
I need to update a label.control dynamically (there are about a 1000 and I have them all listed in a table...
I have this:
Dim variable As String
Set db = CurrentDb
Set mdf_query = db.OpenRecordset("MDF_query")
mdf_query.movefirst
variable = mdf_query!MFS_Hokje_id_on_form 'labelnametable/colom
if x=0 then
me![variable].backcolor = 1677752
end if
the me![variable] does not work and I need the variable (variable = controlname such as label434 from the table)I tried the with thing, that didn't help (it's me)
the last time this site was a great help, meybe it can be one more time? (help!!!)
mucho thanxs
Marcel
*****************************************
* This message was posted via http://www.accessmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.accessmonster.com/Uwe/Abuse.aspx?aid=5dd41297a89f4db8b111b5f7c7a21cfc
*****************************************