"Order By" fails in form for linked table.
--------------
My A2K database has worked well for several years, but now has been split
into front-end/back-end and has the following problem. I have a form to access
a table which I'll call "NameTable" . It has a simple structure:
------------
EmployeeID FirstName (Other fields)
(autonumber,
primary key)
---------------
1 Baker
2 Dog
3 Charlie
4 Edward
5 Able
---------------
In the form, the "Record Source" is "NameTable" , and the "Order By" is
"NameTable.Firs tName"
---------------
When the NameTable was in the same module as the main program, this worked
fine. When the form came up, the first record displayed had the name "Able,"
and if you went to the Next Record (click on the arrow at the base of the
screen) you then went to Baker, Charlie, etc.
But now, the NameTable is in another Access module, and is accessed via a link.
When the form comes up, the first record shown is Baker, then Dog, etc, that
is, in the order of the EmployeeID, the primary key. It doesn't matter what
field I put in the "Order By" variable; the order always is the primary key.
All the rest of the controls work OK, and I can enter and/or change any field I
want.
Am I missing something? Thanks. Pete Brady
--------------
My A2K database has worked well for several years, but now has been split
into front-end/back-end and has the following problem. I have a form to access
a table which I'll call "NameTable" . It has a simple structure:
------------
EmployeeID FirstName (Other fields)
(autonumber,
primary key)
---------------
1 Baker
2 Dog
3 Charlie
4 Edward
5 Able
---------------
In the form, the "Record Source" is "NameTable" , and the "Order By" is
"NameTable.Firs tName"
---------------
When the NameTable was in the same module as the main program, this worked
fine. When the form came up, the first record displayed had the name "Able,"
and if you went to the Next Record (click on the arrow at the base of the
screen) you then went to Baker, Charlie, etc.
But now, the NameTable is in another Access module, and is accessed via a link.
When the form comes up, the first record shown is Baker, then Dog, etc, that
is, in the order of the EmployeeID, the primary key. It doesn't matter what
field I put in the "Order By" variable; the order always is the primary key.
All the rest of the controls work OK, and I can enter and/or change any field I
want.
Am I missing something? Thanks. Pete Brady
Comment