> Since the judge's full name isn't *IN* the form's Recordsource, you can't
sort
> by it using the Form's OrderBy property. The information simply isn't there!
>
> You may want to try basing the Form on a Query joining to the table of judges,
> and including the judge's name. You will not be able to sort by a combo box.
> --
>
> John W. Vinson [MVP]
Thanks for the info. I was afraid of that. I was trying to avoid that. I
had it that way before, but I noticed that if one of the records did not have
a judge assigned (it's not a required field), the record doesn't show up in
the list. Maybe I'm doing something wrong there?
Scenario:
I have two tables: One called tblAppeals that has fields like
[DefendantFname], [DefendantLName], etc. and the foreign key [JudgeId]. The
other related table is called tblJudges. It has fields like [JudgeFname],
[JudgeLname] and the primary key [JudgeId]. The continuous form that I'm
trying to sort is a search form to search for records. Right now the form is
only based on the table: tblAppeals. If I try to base it on a query that
contains both tables tblAppeals and tblJudges...if a record is in tblAppeals
but does not contain a related record in tblJudges (i.e., the foreign key
[JudgeID] in tblAppeals is null), then the record does not show up on the
search form. not sure why?
>> Stay informed about: VBA - Order by second column of combobox