Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Issue in Continuous Form

Status
Not open for further replies.

nobull613

Technical User
Jun 6, 2003
76
US
I have a combo box (Employee) whose recordset is filtered by the selection in another combo box (Department) on the form. To pull the employees for the selected department, I have the Employee combo box requery On Click. The issue is that the list is requeries for every "instance" of the continuous form. Previously entered employees for other departments are no longer visible in the form when the department is changed. The data is correctly stored in the table but it is very confusing for the users.

Is there any way to have the recordset update only for the active form versus all of occurences of the continuous form?

Thanks,
 
How are ya nobull613 . . .

Requery [blue]Employee[/blue] from the [blue]AfterUpdate[/blue] event of [blue]Department![/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
If the list of employees for the newly selected department does not include an employee that was picked previously for another department, will they "disappear" from the form? The data is in the table but the requeried recordset no longer includes them.
 
Hi nobull613,
Maybe it would be a better design to do the entering of data in a single form, while you all the entries in the on a continuous subform....

Pampers [afro]
Keeping it simple can be complicated
 
nobull613 . . .

It sounds as if the [blue]Employee[/blue] combobox is [purple]bound![/purple]

Is this correct? . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
nobull613 . . .

Your problem involves a changing recordset (probably via a WHERE Clause based on the Department combo) returned by Employee.

Each Employee combo in the field doesn't have its own recordset! They're all tied to whatever the current recordset may be!, and if the current doesn't include prior selections access displays a blank (what else can access do). In fact if scroll up and down you'll actuall see current visables, disappear!

A subform would relieve you of the Employee combobox!



Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top