Subform record order?

Atthe

Member
Local time
Today, 08:33
Joined
Oct 26, 2021
Messages
57
Hi All,

My database seems to have developed an issue. When I am adding new records using an emulated spiltform the record goes into the split form at the bottom (expected behaviour) but when I requery/or close re open the form all the records I have entered today appear first despite the PK being larger than the existing records below?

the table is sorted smallest to largest on the correct field

I have tried adding order by in vba in the on load event but this doesn't seem to make a difference

Does anyone have any ideas?

Cheers
 
use a "real" split form.
 
the table is sorted smallest to largest on the correct field
what is the 'correct field'?
 
Hi All,

My database seems to have developed an issue. When I am adding new records using an emulated spiltform the record goes into the split form at the bottom (expected behaviour) but when I requery/or close re open the form all the records I have entered today appear first despite the PK being larger than the existing records below?

the table is sorted smallest to largest on the correct field

I have tried adding order by in vba in the on load event but this doesn't seem to make a difference

Does anyone have any ideas?

Cheers
Yes, you are causing this in some way. I say that, as I had the same setup and it works as expected.
 
Well look at the data tab for the mainform, as if the subform has the latest at the top, so will the mainform.
 
I can't see anything amiss
 

Attachments

  • Main form.PNG
    Main form.PNG
    13.1 KB · Views: 388
  • Subform.PNG
    Subform.PNG
    5.9 KB · Views: 388
So you are NOT using a table, but a query which is not even sorted? :(
 

Users who are viewing this thread

Back
Top Bottom