I’ve used ‘=Environ("UserName")’ in a text box on a form to capture the user name and would like to filter a combo box depending upon who the user is. The underlying table has the following fields and values:
FileLocation UserName1 UserName2
G:\ Form 314.doc Yes No
G:\ Form 315.doc No No
G:\ Form 668.doc Yes No
So if ‘UserName1’ logs on, he’ll only be able to view ‘G:\ Form 314.doc’ and ‘G:\ Form 668.doc’ in the drop down list.
Can anyone please advise me on the easiest method of achieving this?
FileLocation UserName1 UserName2
G:\ Form 314.doc Yes No
G:\ Form 315.doc No No
G:\ Form 668.doc Yes No
So if ‘UserName1’ logs on, he’ll only be able to view ‘G:\ Form 314.doc’ and ‘G:\ Form 668.doc’ in the drop down list.
Can anyone please advise me on the easiest method of achieving this?