I had posted this same question on the forms forum but to na avail.
I have 2 user groups (sales, marketing)that generally are kept separate - using user-level security and forms for navigation. They now need visibility of each others reporting.
The forms run in POp-up modal format.
On the OnClose event of the reports I currently have the user sent back to their respective forms i.e. if a sales report is closed it goes to the sales form. However, this will now have to be altered as it can be marketing or sales that have requested the report.
I don't really want to duplicate all the reports just for the OnClose event to return the user tothe right menu.
Is there someway to have a scenario that looks at the group the user is in then opens the correct form? i.e.
If (user is in Sales group) Then
Openform "Sales"
else
if (user is in Marketing group) Then
OpenForm "Marketing"
else
OpenForm "Main"
Any help is greatly appreciated.
I have 2 user groups (sales, marketing)that generally are kept separate - using user-level security and forms for navigation. They now need visibility of each others reporting.
The forms run in POp-up modal format.
On the OnClose event of the reports I currently have the user sent back to their respective forms i.e. if a sales report is closed it goes to the sales form. However, this will now have to be altered as it can be marketing or sales that have requested the report.
I don't really want to duplicate all the reports just for the OnClose event to return the user tothe right menu.
Is there someway to have a scenario that looks at the group the user is in then opens the correct form? i.e.
If (user is in Sales group) Then
Openform "Sales"
else
if (user is in Marketing group) Then
OpenForm "Marketing"
else
OpenForm "Main"
Any help is greatly appreciated.