Microsoft
Software
Hardware
Network
Question : Having a weird Format Conditions problem...
Hi,
I am writing some code to do a Format Conditions and having a weird problem. The code is as follows:
If fTestForControl(vForm, "JobIDShortCompany") Then 'this is just a little Function I wrote to test if a control exists on a form...
![JobIDShortCompany].Forma
tCondition
s.Delete
Set objColor = ![JobIDShortCompany].Forma
tCondition
s.Add(acEx
pression, , "[JobID] = 0")
Set objColor = ![JobIDShortCompany].Forma
tCondition
s.Add(acEx
pression, , "[JobID] <> 0")
With ![JobIDShortCompany].Forma
tCondition
s(0)
.BackStyle = 1 <<< ERROR ON THIS! (weird)
.BackColor = COLOR_GRAY_LT
End With
Set objColor = Nothing
With ![JobIDShortCompany].Forma
tCondition
s(1)
.BackStyle = 0
.BackColor = COLOR_ROW_BLUE_DK
End With
Set objColor = Nothing
End If
*******************
So the .backstyle = 1 is throwing me an error message that "this object doesn't support this property..."
Um, can someone help me here cause i don;t see what's wrong with my syntax.
Thanks!
M
Answer : Having a weird Format Conditions problem...
(ie: Backstyle is not an option under FormatConditions)
Random Solutions
MSSQLSERVER unhandled exception 80000003, Error: 17311, Severity: 16, State: 1, SQL 2005, Windows 2008
Vista Business logs off immediately after login.
Windows Server 2008 r2
Cannot open .xls file attachments in Outlook
Sorting a date column in dataview
convert date to date number
Need to return " "
Terminal Server Licensing
Need to calculate net working hours... networkHOURS?
finding computer on network sending spam