Order of records in form has changed!

I have a form, based on a table to which I have recently migrated a new set of records. At first, everything looked fine, but I recently when I opened the form at home , after working on the application in work, I noticed that the form starts at record number 25 (Record PK, Number datatype). Record number 1 is now the 119th record (according the navigation buttons). What the heck have I done? When I look a the table in datasheet view, it lists in the correct order. The only index I have in there is the PK!

Thanks
JohnSaintAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AngelinoMCommented:
Order will be in 'first entered first served' as a result the date when the record is inserted. Specificly set your order by statement in your SQL of the form or through the property palette of your form. Order by your PK or aby other column or create a new column where you specificly define the order in which to view the data.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
puppydogbuddyCommented:
Try this: Place your form in design view and bring up the property sheet.  The third property down is the Order By property. Insert the field you want the form ordered by here.  The form can display data in any order that you specify.
0
aflockhartCommented:
If you sort the data in a form, Access remembers the sort order (it asks you if you want to save changes to the form when you exit: what it it is doing is saving the "Order By" entry that puppydogbuddy mentions. That might be what you have done.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

dannywarehamCommented:
As a side note, I personally would not use the inbuilt record navigation buttons.

Instead, remove them and let the use find their own record using a filter from a combo or other control
0
JohnSaintAuthor Commented:
I had set the ORDER BY property and it wasn't working. It now seems to work. Odd. Cheers.
Danny, I only displayed the navigation buttons for my own benefit. I have my own navigation system. I just wanted to see what Access was viewing as the first record.

Thanks
0
JohnSaintAuthor Commented:
The ORDER by property has been reset to blank!!!! I think I'll set this property in VBA on open.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.