You are the man!
Main Topics
Browse All TopicsI have a drop-down list(My:Office_Name) that is linked to a secondary data source. This secondary data source is a query(could be a table as well) that has the office Name, Office No and Zone. I want to Auto-Populate the text field (My:Office_No) depending on the selection on Office Name.
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.
Business Accounts
Answer for Membership
by: clayfoxPosted on 2009-08-28 at 14:23:22ID: 25211636
This is pretty simple and common using rules.
In properties of Office_Name go to rules.
Add a rule
add an action
set a fields value
select Office_No
Click on the Fx function button
Select add a field
browse to the secondary data source and the office_no field.
Select filter which is on the lower left of the window
Add a filter
Select officename in the dropdown
equals
Select field
browse to the My:Office_Name field in your main data source
Click OK many times
SO essentailly you are setting your field with the office no from the list where office name is equal to the name selected. And it is triggered each time the value is changed. This rule could be put anywhere you wanted but that is the most common. You also can add aditional rules for zone, etc.
Have fun
www.infopathdev.com is a good resource as well.