Hi All,
I have a cbo box with user names in. It has 2 columns (showing actual name and user name), and I have included an “All” option (its based on a union query). The “All” option returns the value “*”.
When a user opens the database, the cbo box defaults to their name. Bu I want to amend the default so that any user who is not registered will receive the “All” option rather than a blank.
I've been looking at the below but seem to be getting it wrong. Can any one advise?
Thanks
I have a cbo box with user names in. It has 2 columns (showing actual name and user name), and I have included an “All” option (its based on a union query). The “All” option returns the value “*”.
When a user opens the database, the cbo box defaults to their name. Bu I want to amend the default so that any user who is not registered will receive the “All” option rather than a blank.
I've been looking at the below but seem to be getting it wrong. Can any one advise?
Thanks
Code:
[COLOR=#1f497d][FONT=Arial]=IIf(NZ(DLookUp("UserID","tbl_REF_RMOPIC INNER JOIN tbl_REF_UID ON tbl_REF_RMOPIC.[PIC Name] = tbl_REF_UID.Name","UserID=" & User())),"*",DLookUp("UserID","tbl_REF_RMOPIC INNER JOIN tbl_REF_UID ON tbl_REF_RMOPIC.[PIC Name] = tbl_REF_UID.Name","UserID=" & User()))[/FONT][/COLOR]