I have a Combobox control (StatCD) on a form (frmProjectMaint)for Project Status based on a “Status” table. I also have a field on the form which contains the Project End Date (“EndDT”). If the project has an end date (ie; Is Not Null), I want the Combobox values to only display the table values “On-Hold, Completed, Killed, No GL Impact or RGFO Completed”(TermDtReq=Y). However, if there is no EndDT, I want Combobox values to only display the table values “Active or Not Started”(TermDtReq Is Null).
Can I accomplish this by modifying the Combobox Row Source SQL?
Row Source: SELECT [Status].[StatCd], [Status].[Status] FROM [Status] ORDER BY [Status];
Form: frmProjectMaint (based on qryProjectsMaint)
Field: EndDT
CB: StatCD
Table: Status
StatCD |
Status |
TermDtReq |
1 |
Active |
|
2 |
On-Hold |
Y |
3 |
Completed |
Y |
4 |
Killed |
Y |
5 |
Not Started |
|
6 |
No GL Impact |
Y |
7 |
RGFO Completed |
|
Thanks
Using Access 2007 with mdb db