TheSearcher
Registered User.
- Local time
- Today, 18:11
- Joined
- Jul 21, 2011
- Messages
- 408
'***This works
Me.Controls("Date1").BackColor = "8454143"
'*** When I replace the hard coded field name with a variable -
FieldName = "Date1"
Me.Controls(FieldName).BackColor = "8454143"
'*** I get an "Object doesn't support this property or method" error.
Does anyone know why?
Thanks in advance,
TS
Me.Controls("Date1").BackColor = "8454143"
'*** When I replace the hard coded field name with a variable -
FieldName = "Date1"
Me.Controls(FieldName).BackColor = "8454143"
'*** I get an "Object doesn't support this property or method" error.
Does anyone know why?
Thanks in advance,
TS