Hi all,
Please could someone help me with this annoyance.
I have a combobox (CBO1) with the below rowsource (allowing me to have an “All” option).
I also have a public function (MyID) that retrieves the Windows user name.
I want the default value of CBO1 to be linked with MyID so that it automatically selects the current user but I cant seem to get it to do anything.
Thanks for any advice.
Please could someone help me with this annoyance.
I have a combobox (CBO1) with the below rowsource (allowing me to have an “All” option).
Code:
[SIZE=3][COLOR=#000080][FONT=Arial]SELECT "All" AS [PIC Name], "*" AS [Ref] FROM tbl_REF_Users[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000080][FONT=Arial]UNION SELECT tbl_REF_USERS.[PIC Name], tbl_REF_USERS.[PIC Name] AS Ref [/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000080][FONT=Arial]FROM tbl_REF_USERS GROUP BY tbl_REF_USERS.[PIC Name], tbl_REF_USERS.[PIC Name][/FONT][/COLOR][/SIZE]
I also have a public function (MyID) that retrieves the Windows user name.
I want the default value of CBO1 to be linked with MyID so that it automatically selects the current user but I cant seem to get it to do anything.
Thanks for any advice.