hi jack
i always have a popup asking me, enter value of catogory :(. then for the update i need to enter category again with integer :(
thanks
Main Topics
Browse All TopicsHI all
i have form with tree listbox...
1 - listbox --> category (main one)
1- listbox --> visitor team (i would like choice depending of category)
1- listbox --> receving team (i would like choice depending of category)
my database have 3 tables, category, team, and schedule
team and category are depending, in my table team, i have field team and category (dropdown from category table),
when i choose category in the form, i would like visitor and receving team autoupdate choice only for the team in this category, there is my source row in the 2 listbox:
SELECT team.id, team.team FROM team WHERE team.category=form.categor
and i made this code too
Private Sub Category_Change()
Visiteur.Requery
Receveur.Requery
End Sub
all work in half, when i change category, ALL Entry autoupdate, i would like to update only the entry where i am...
any suggest..?
in regard
popy
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This routine should be consolidated to have the control that holds the [forms]![FormName].[catego
Perhaps a combo box (unbound) with a rowsource of all the valid [category]'s
Advantages:
1. 1 fewer form to maintain
2. Integration of the filter control with the form being filtered.
3. Tighter scope of operation.
the row source of [forms]![FormName].[catego
SELECT category.id, category.Category FROM category;
then it list all cat in the DB, it when i choose one cat, i want it to update the visitor and recevor fields, it do it, but for all entry..., i already did it, 4 years ago, but i dont remember how ( and i lost DB... :( )
in regard
popy
1. It seems to me that Category.id would be the key field here.
(This field name should be CategoryID, not just ID. "ID" is non-descriptive when viewed alone.
2. It is bad juju to have a table and a field IN that table named the same.
3. Set the rowsource sql to include a reference to the cboCategory
in lstVisitor
SELECT * FROM Visitor WHERE ([CategoryID]=[forms]![For
'cboCategoryID = "cbo" for combobox + CategoryID, the field name I suggested you change
and lstRecevor
SELECT * FROM tblRecevors WHERE ([CategoryID]=[forms]![For
(prefixes added to form controls are my suggestion...)
Business Accounts
Answer for Membership
by: jadedataPosted on 2004-01-28 at 05:54:28ID: 10217968
Greetings popy!
y;
rmName].[c ategory]);
rmName].[c ategory]) ry]
this line of sql
SELECT team.id, team.team FROM team WHERE team.category=form.categor
should probably look like
SELECT team.id, team.team FROM team WHERE (team.category=[forms]![Fo
Use this:
WHERE (team.category=[forms]![Fo
in all the comboboxes that need to match [forms]![FormName].[catego
replace occurances of FormName with the REAL form name in your project.
then your .requery on the combo's might have a better result
regards
Jack