Ken,
Thanks for the reply.
First, a clarification. You're right, but the names are JobTitle, for the
table, and JobTitles, for the field.
Some of what you say is a bit over my head, but:
You were right, in the RowSource attribute, I had all the fields SELECTed.
Took all out except JobTitle and made sure ORDER was JobTitle. Now I get a
blank in my form where the ComboBox appears. Oddly, it shows two columns,
both blank. Here is the RowSource Statement:
SELECT JobTitles.JobTitle FROM JobTitles ORDER BY [JobTitle]; or,
SELECT JobTitles.JobTitle FROM JobTitles ORDER BY JobTitles.JobTitle;
When I use the RowSource that calls for displaying ALL the fields, I get
text in the ComboBox, but if I limit it to display JobTitle, it is blank with
two columns showing. Probably, it would show more columns if the form's field
were wider.
Appears I indexed the JobTitle field, non-unique.
Don.
The corresponding field in the Applicants table is PositionAppliedFor. You
are saying it should be indexed non-uniquely
"KenSheridan via AccessMonster.com" wrote:
> No, you certainly don't want multiple title in one row; that's very bad
> design because the table is not then in First Normal Form which requires each
> row in a table to have only one value of each attribute. Your present table
> structures sound OK. It could be argued that a 'surrogate' numeric
> JobTitleID as the key of the JobList table has advantages, but assuming all
> job titles are unique string expressions, there is no bar to using a
> 'natural' key as you are doing.
>
> I'm assuming that by 'JobList field' in your last post you mean the JobTitle
> field you referred to in your first post, so for this example I'm assuming
> the table is JobList and the column (field) is JobTitle and this is the
> primary key of JobList. In which case the JobTitle combo box on the form
> based on the Applicants table would be set up as follows:
>
> ControlSource: JobTitle
>
> RowSource: SELECT JobTitle FROM JobList ORDER BY JobTitle;
>
> You should then be able to select a job title from the combo box's list as
> the value for the JobTitle field in the current record.
>
> The reason that you are getting the inconsistent results might be due to the
> inclusion of the ReportsTo column in the combo box's list. If there are
> multiple job titles associated with the same ReportTo value, its possible,
> depending on how the combo box has been set up, that selecting one job title
> will in fact select the first job title in the list associated with the
> ReportTo value with which the selected one is associated. By returning only
> the JobTitle column in the combo box's RowSource as described above, this
> should be avoided.
>
> BTW the JobTitle column in the Applicants table should be indexed non-
> uniquely (duplicates allowed). The JobTitle column in Applicants is a
> foreign key referencing the primary key JobTitle column of JobList. A
> primary key column is indexed uniquely automatically by virtue of its being
> defined as the primary key. The corresponding foreign key column in a
> referencing table should be indexed non-uniquely to enhance performance.
>
> Ken Sheridan
> Stafford, England
>
> PlarfySoober wrote:
> >Karl,
> >
> >Thanks for the reply.
> >
> >It appears from your reply that I am completely off base here. The Applicant
> >table's <JobList> field is text. So is the <Joblist> field in the JobList
> >table. Applicant, except for the combobox is pretty straightforward. Joblist
> >table is a list of job titles, each of which is a record with a couple of
> >other columns, notably a <ReportTo> field.
> >
> >It sounds like I need to make one of these tables a bit more exotic than I
> >have.
> >
> >Actually, it sounds like I am supposed to put all the job titles in one
> >record, separated by, maybe, commas, trying to read between the lines of your
> >response. Is that the case?
> >
> >Don.
> >
> >> A silly question - is the field in the table where the selection is stored a
> >> lookup field?
> >[quoted text clipped - 31 lines]
> >> >
> >> > Don.
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...arted/201001/1
>
> .
>