View Full Version : Is this the best method?


Zaeed
01-08-2008, 12:19 PM
Hi,

I have a form which has a subform. For each record, I have to assign a user, which comes from a user table. Due to the large number of users I have created a user selection form, which is designed as a popup. This form has an option group to select department, which then filters a combo box for selection of a user. On clicking a user, the window closes and that username is inserted into the form.

Since this particular user form will be used in multiple locations, I was thinking of having a global variable, which is set when a field is clicked. i.e. a variable called nameSelect. When a user is being assigned in form A, the user field is clicked, nameSelect = 3.

I was then thinking of having within the user selection form coding a Select Case function which depending on the value of nameSelect assigned the selected user to the correct location.

Is this the best method to tackle this?

Uncle Gizmo
01-08-2008, 02:50 PM
You are you using a front end, backend arrangement?

Zaeed
01-08-2008, 03:36 PM
I will be when it gets to the point of implementation