A
Aria
How do you conditionally format a text box that is based on an IIF statement
in another control?
This is a sub form (sfrmKeys) with the following SQL:
Row Source: SELECT [tblLocks].[LockID], [tblLocks].[Location],
[tblWings].[WingDescription], [tblBuildings].[BuildingDescription],
[tblBuildings].[Active], IIf([Active]=False,[BuildingDescription] & "
(Ret.)",[BuildingDescription]) AS [Retired Bldgs] FROM tblBuildings INNER
JOIN (tblWings RIGHT JOIN tblLocks ON
[tblWings].[WingID]=[tblLocks].[WingID]) ON
[tblBuildings].[BuildingID]=[tblLocks].[BuildingID] ORDER BY
[tblLocks].[Location];
The Control Source of txtBuilding is:
=[cboSelectLock].Column(5)
I didn’t account for bldgs being retired so I’m trying to fix everything
now. What I would like to happen is that only “(Ret.)†turns red if the bldg
is retired. Since the Row Source is for cboSelectLock, I didn’t know how to
get it to do what I want for txtBuilding.
in another control?
This is a sub form (sfrmKeys) with the following SQL:
Row Source: SELECT [tblLocks].[LockID], [tblLocks].[Location],
[tblWings].[WingDescription], [tblBuildings].[BuildingDescription],
[tblBuildings].[Active], IIf([Active]=False,[BuildingDescription] & "
(Ret.)",[BuildingDescription]) AS [Retired Bldgs] FROM tblBuildings INNER
JOIN (tblWings RIGHT JOIN tblLocks ON
[tblWings].[WingID]=[tblLocks].[WingID]) ON
[tblBuildings].[BuildingID]=[tblLocks].[BuildingID] ORDER BY
[tblLocks].[Location];
The Control Source of txtBuilding is:
=[cboSelectLock].Column(5)
I didn’t account for bldgs being retired so I’m trying to fix everything
now. What I would like to happen is that only “(Ret.)†turns red if the bldg
is retired. Since the Row Source is for cboSelectLock, I didn’t know how to
get it to do what I want for txtBuilding.