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

drop down list is blank in subform

Hello everybody.
Can someone point out please what is wrong with my work?

What I have so far:
People take part in experiments, and a record is made in
tblExperimentInstances. There are a number of different experiments, as
listed in tblExperimentType. I have the following table structure:

tblPeople:
PeopleID ,primary key
Surnname

tblExperimentInstances:
ExperimentInstID ,primary key
PeopleID ,foreign key
ExperimentTypeName ,foreign key
Date
Comments

tblExperimentType:
ExperimentTypeName ,primary key
Comment

Field ExperimentTypeName is data type Lookup Wizard and looks at the
values stored in its corresponding field in tblExperimentType.

Then, I have a form with a person details in textboxes. On this form is
a subform, with the experiment the person took part in listed in a
combo box. There is a navigation button on the subform to move to the
next record i.e. other experiments the person took part in. The subform
is based on the following query:

SELECT tblPeople. PeopleID, tblExperimentInstances.ExperimentTypeName,
tblExperimentInstances.Date, tblExperimentInstances.Comments
FROM tblPeople INNER JOIN (tblExperimentType INNER JOIN
tblExperimentInstances ON tblExperimentType.ExperimentTypeName =
tblExperimentInstances.ExperimentTypeName) ON tblPeople.PeopleID =
tblExperimentInstances.PeopleID;

In my subform, I have a combo box for the ExperimentTypeName (from
query, and the query gets it from tblExperimentInstances), and
textboxes for the Date and Comments.

What I want:
When I am in the subform for a particular person and I click on the
ComboBox for ExperimentTypeName, it should display a dropdown list of
the available experiments. At present I only get a blank list. I want
it to work as when I click on the column for ExperimentTypeName in my
table or query, where one can select which of the available experiments
this person takes part in.

Wow that was quite an explanation. I think it is simpler than I have
tried to put it - but it seems strange to me why it doesn't work.

Thanks in advance!

Nov 13 '05 #1
2 3001
Jean wrote:
Hello everybody.
Can someone point out please what is wrong with my work?

What I have so far:


Jean,

What I would try is to go to the combobox's Row Source in Design Mode
and click the three dots. Then remove some of the criteria to see if
you get any records. Don't forget to click 'No' when asked to save
changes. Hopefully, you'll get an idea of why you're getting a blank
list.

James A. Fortune

Nov 13 '05 #2
I had to go and re-arrange my whole form - was quite a job but now it
is working again. Thanks for the tip!

Jean

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jean | last post by:
Hello everybody. Can someone point out please what is wrong with my work? What I have so far: People take part in experiments, and a record is made in tblExperimentInstances. There are a number...
2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
1
by: Paul M | last post by:
Hi folks, When I set the datasource of a dropdown list and bind it, the drop down list always defaults to the first item in the list. I need it to default to Nothing or NULL or whatever it is...
1
by: Big E | last post by:
I'm using ASP.Net and SQL Server. I have a drop down list that populates from a table. When the form opens the drop down list is full of data. I would like the drop down list to not show a default...
0
by: thebison | last post by:
Hi all, I hope someone can help with this relatively simple problem. I am building a timesheet application using ASP.NET C# with Visual Studio 2003.As it is only a protoype application, my...
1
by: kevinjouco | last post by:
Hello I Have established a form in the following manner: Table - "Supplier" - one field - Supplier - Listed Suppliers Used Table - "Supplier Updates" a number of fields including...
1
by: Grimason-NZ | last post by:
Hi, I have MS Office Pro 97 and have built a database that has two tables. The MS Office Pro 97 manual does not appear to cover how to make a Drop down list and thus I need some advice on the how...
1
by: newbie007 | last post by:
Hi There Im using access 2003 and have created a form for entering orders. In the database I have a table of products which is displayed in a subform Users have to scroll through large...
1
by: Basket61 | last post by:
I need to use a drop down box based on table Color that, once you click on a value, populates the field in my form In the main database design, I reference the Table Color, both the ID and the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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...

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.