I have three levels of fairly simple cascading combos. All contained in the same table- Division>Admin>Dept. All three boxes work fine, but now I am attempting to have them do two additional steps.
1. I want the lower levels to default to a null value upon entry into the upper levels. I tried the onclick field cboname=" " but that didn't work.
2. I want the query to default to all if no selection is made. I am using an IIF statement which works fine for the Admin level, but will not work for the Department level. Here is the syntax I am using for both...
IIf(IsNull([Forms]![Main]![CboDiv]),[Admin],[Forms]![Main]![CboDiv])
works fine
IIf(IsNull([Forms]![Main]![CboAdmin]),[Deptid],[Forms]![Main]![CboAdmin])
Doesn't work, and actually isn't pulling a value at all. I am new to Access so forgive me if I am overlooking the obvious. Thanks in advance....
1. I want the lower levels to default to a null value upon entry into the upper levels. I tried the onclick field cboname=" " but that didn't work.
2. I want the query to default to all if no selection is made. I am using an IIF statement which works fine for the Admin level, but will not work for the Department level. Here is the syntax I am using for both...
IIf(IsNull([Forms]![Main]![CboDiv]),[Admin],[Forms]![Main]![CboDiv])
works fine
IIf(IsNull([Forms]![Main]![CboAdmin]),[Deptid],[Forms]![Main]![CboAdmin])
Doesn't work, and actually isn't pulling a value at all. I am new to Access so forgive me if I am overlooking the obvious. Thanks in advance....