473,395 Members | 1,677 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,395 software developers and data experts.

Populate a subform from a Combo box

1
I created a form with a subform. I can populate the subform by moving from record to record in the main form but this is time consuming.
I created a combo box on the main form which is populated with a list of all students taken from the student table. It contains the student first name, student last name and student ID. I want the student that is clicked on in the combo box to populate the sub form with the students visit data from the student visit table. It contains the student ID and student visits dates. When I click on the student in the combo box nothing changes in the subform. What do I need to do to correct this?
Jan 3 '07 #1
5 3293
NeoPa
32,556 Expert Mod 16PB
I think your first step should be to re-arrange this question.
Start by giving the information without which any reader is lost.
Layout of tables etc. The database structure.
Next explain what you're trying to achieve.
Lastly, say how far you've got and explain what is going wrong.
At this point, assuming the other bits have been clearly explained, the reader will understand where you're coming from and may well be able to help.
We have many very experienced experts on this site but we all need to understand the problem before we are in a position to offer help... and we like to help :).
Jan 3 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
I created a form with a subform. I can populate the subform by moving from record to record in the main form but this is time consuming.
I created a combo box on the main form which is populated with a list of all students taken from the student table. It contains the student first name, student last name and student ID. I want the student that is clicked on in the combo box to populate the sub form with the students visit data from the student visit table. It contains the student ID and student visits dates. When I click on the student in the combo box nothing changes in the subform. What do I need to do to correct this?
In the object properties of the subform make sure the master field is set to the combo box and the child field to studentID. You will also have to put an after update event on the combo box to reuery the subform object.

Mary
Jan 3 '07 #3
NeoPa
32,556 Expert Mod 16PB
Mary, of course, has an uncanny ability to read and make sense of things that can turn my brain inside out.
This is just one of the reasons we love her so much - that and her prolific work-rate.
Jan 4 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
Mary, of course, has an uncanny ability to read and make sense of things that can turn my brain inside out.
This is just one of the reasons we love her so much - that and her prolific work-rate.
You LUVVVVVVVVVVV Me????????????????
Jan 4 '07 #5
NeoPa
32,556 Expert Mod 16PB
Don't try that 'I'm still a school aged individual' line with me Mary McCarthy (As said by a sister of the Ladies of Mary)!
I know better than that.
(But of course we do!)
Jan 4 '07 #6

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

Similar topics

1
by: Argus Rogue | last post by:
Hello All Access Guru's: I was wondering if you could assist me with a little problem that I am having using subform. Is it possible to scroll down a subform to a particular record, click on...
4
by: godber | last post by:
I need to populate text boxes for instance with employee information using their unique employee works number selected from a combo box. Can anyone help, I am told thru visual basic this can be...
4
by: bill.brennum | last post by:
Hi, This is probably a question with a simple answer, but here goes. I have a form linked to a table. There is a field on that table that while not showing on the form, I would like to...
1
by: hawg1 | last post by:
Hi, Having problems getting combo box on main form to populate subform after selection. Combo box itself works fine (used wizard to create it). Subform comes up with blank fields. Any...
2
by: pankajm | last post by:
Hello Friends: I am trying to populate a subform that has three fields that would pull view only data from a child table. The criteria for this data is to select the three fields where one of them...
29
by: gedwards | last post by:
First off, I am a complete newbie to Access. I've used it maybe a half dozen times, all my database knowledge is with Oracle. I'm building a database/form in Access 2003. I'm trying to get it so...
1
by: lawton | last post by:
Source: this is an access 2003 question My knowledge level: reading books, internet, and trial & error; no formal training I'm trying to get a running sum of what's filtered in a subform which is...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
5
by: samdev | last post by:
I have created two combo boxes in a subform.... For example 1. Combo Box State 2. Combo Box City 3. When a state from the Combo Box State is selected, the City combo box updates to reflect...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.