I have a database in 2000 format being run with the backend on the server and the frontend on the desktop. They have recently upgraded to 2007 but the database remains in 2000 format.
One of the forms is very complicated and accesses a large recordset and in a previous post we came up with making the form unbound and setting recordsources on load. The item in question uses the following:
Me!frmDep.Form!frmISAPSubMeetings.Form.RecordSource = “tblISAPMeeting”
Last week, I got a call that records for meetings were no longer sorting chronologically. The order showed no logic I could grasp. With one record with 50+ meetings dating back 3 years, the first meeting displaying was the most recent (late June) then meeting #2 was the very first meeting in 2004 and and they proceeded in chronological order from there. There was an orderby in the table properties which I removed while the backend was still on the server to no avail. I eventually discovered that if I took the backend off the server, fixed it on a desktop and then put it back, it was OK.
2 Questions:
1) is there a way to set the order in VBA when the recordsource is set so that even if the table is flaky, the records will be in chronological order? I suppose I could use a query, but I’d rather avoid that if I can.
2) Any speculation as to why I could fix it on a desktop but not over the network? Has anyone else encountered this little quirk before and is it 2000 or 2007 related?