473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Working with subforms

204 128KB
I have a form bound to my People table to display data about a selected person. If the person is a musician (indicated by a flag in the People record) there may be one or more entries in a second table, Musos, each entry containing the PersonID and the instrument they play. If they play several instruments, they may have several entries in Musos.

On the main form there is a subform bound to the Musos table and linked on PersonID. The subform should show, in continuous forms view, a list of the instrument(s) they play. The record is updatable - I want to have a combo box on the subform allowing the user to select an instrument from a third table, Skills. But I can't figure out how to get it working. The row source is currently set to
Expand|Select|Wrap|Line Numbers
  1. SELECT [Skills].[SkillID], [Skills].[Skill] FROM Skills ORDER BY [Skill]; 
. Can anyone help?
Apr 14 '20 #1

✓ answered by twinnyfo

The Combo Box should be bound to the Skills Field in the Musos Table. Every time you select an instrument on a new record, it will associate that new record with the current person filter in the subform.

Hope this hepps!

3 1893
twinnyfo
3,653 Expert Mod 2GB
The Combo Box should be bound to the Skills Field in the Musos Table. Every time you select an instrument on a new record, it will associate that new record with the current person filter in the subform.

Hope this hepps!
Apr 14 '20 #2
Petrol
204 128KB
Ah, thank you. I was binding the wrong field, for some reason.
This now works for adding an instrument or changing to another instrument. When I delete an instrument it leaves the Musos record there with an empty SkillID field and hence an empty slot in the subform list, but I guess I can write code to delete the record.
Apr 14 '20 #3
twinnyfo
3,653 Expert Mod 2GB
Glad I could hepp! Let us know if you need anything else.
Apr 14 '20 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Alan Bloom | last post by:
I'm designing a db which stores client details but each client has multiple 'occasions'. For each occasion there is a section which has items purchased (there are sometimes none, sometimes...
3
by: Diana Gard | last post by:
Perhaps this is a design flaw, please let me know. I'm using Access 2000. I have a form with a tab control and 5 subforms within those tabs. The forms match with the tables: Client main,...
0
by: misscrf | last post by:
I am currently working on a database, in 3rd normal form, which is for candidates who apply for a job with the law firm that I workd for. My issue is with good form design. I have a main...
5
by: Richard Stanton | last post by:
Hello all My database has a main form linked to table1. It has several subforms on the main form, all linked to table2. Table1 and Table2 are linked by primary/foreign key, no duplicates...
5
by: Bill Stock | last post by:
I'm inherited a database that has a few issues. One of the less severe issues, but the one the users bitch about is the speed across the LAN. So I thought that I could unbind the NUMEROUS subforms...
3
by: tlyczko | last post by:
I have a main form with 2 subforms, each subform references different data in the same table. How do I make sure each subform only creates NEW records in the referenced table and do not...
4
by: microb0x | last post by:
I have an application with a master form with a tab control containing nine tabs, each tab contains a subform. I have command buttons on my main form including: Save , Cancel , Close. My...
2
by: collegekid | last post by:
Hi everyone, basically my problem is this: I am using an Access 2000 format. And--I have four subforms in my main form. (Purpose of this is to track projects.) So in my main form I enter the...
1
by: Ecohouse | last post by:
I have a main form with two subforms. The second subform has a combo box whose recordsource is set based on a field in the first subform. I tried putting some code in the first subform to do...
4
by: Harlequin | last post by:
I have a question concerning the need to trigger events within a "child" subform which is itself enbedded within a master "parent" form and which is accessible via a tab in the parent form. Becuase...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.