In regard to one of my last problems, I have additional information.
The issue was a continous subform that displays data entries to provide the user some overview while clicking on one of the entries synchronizes the main form with some detail data of that entry.
The problem seems to be of some SQL type. If you scroll down that continous list and click on an entry, some queries (like the following one) cause the subform to move to the very first entry (top of the list, scrolling all the way up automatically). This is quite stupid since now you have to scroll down again to be able to select the next entry etc. The following query is one example where this strange behavior is present:
SELECT *
FROM ((tblStudents LEFT JOIN tblStudentsBus ON tblStudents.strStudentID = tblStudentsBus.strStudentID) LEFT JOIN tblStudentsMedical ON tblStudents.strStudentID =
tblStudentsMedical.strStudentID) INNER JOIN tblUserStudentsSelection ON tblStudents.strStudentID = tblUserStudentsSelection.strStudentID
WHERE (((tblStudents.dtmLeavingDate)<=[Forms]![frmToDo]![gdtmVirtualDate]) AND ((tblUserStudentsSelection.strUserID)=[application].[currentuser]));
In the following query everything works fine. The subform stays where it is like it is supposed to.
SELECT *
FROM ((tblStudents LEFT JOIN tblStudentsBus ON tblStudents.strStudentID = tblStudentsBus.strStudentID) LEFT JOIN tblStudentsMedical ON tblStudents.strStudentID =
tblStudentsMedical.strStudentID) INNER JOIN tblUserStudentsSelection ON tblStudents.strStudentID = tblUserStudentsSelection.strStudentID
WHERE (((tblUserStudentsSelection.strUserID)=[application].[currentuser]));
Any errors in the vba code behind is impossible (in fact there is only minimal code like GoToRecord, no requery nothing.... it MUST be in the query since this is only envirnomental difference.
Some background to the queries:
These will display Students joined together with extra bus and medical data plus an extra table containing a simple boolean for this entry to be or not be selected. Since every Access user can have his/her own selection this is linked to [application].[currentuser]. The only difference between both queries is the last displaying ALL students and the first displaying Students who left the school already (tblStudents.dtmLeavingDate <= [forms]![frmToDo]![gdtmVirtualDate] - an always present (current or virtual) date).
Unfortunately I cannot provide the database itself since it contains 12 Megs of confidential data already, but maybe someone has an idea where this Jumpy-behavior is hidden the query??
Thanks a lot in advance
waldemar
The issue was a continous subform that displays data entries to provide the user some overview while clicking on one of the entries synchronizes the main form with some detail data of that entry.
The problem seems to be of some SQL type. If you scroll down that continous list and click on an entry, some queries (like the following one) cause the subform to move to the very first entry (top of the list, scrolling all the way up automatically). This is quite stupid since now you have to scroll down again to be able to select the next entry etc. The following query is one example where this strange behavior is present:
SELECT *
FROM ((tblStudents LEFT JOIN tblStudentsBus ON tblStudents.strStudentID = tblStudentsBus.strStudentID) LEFT JOIN tblStudentsMedical ON tblStudents.strStudentID =
tblStudentsMedical.strStudentID) INNER JOIN tblUserStudentsSelection ON tblStudents.strStudentID = tblUserStudentsSelection.strStudentID
WHERE (((tblStudents.dtmLeavingDate)<=[Forms]![frmToDo]![gdtmVirtualDate]) AND ((tblUserStudentsSelection.strUserID)=[application].[currentuser]));
In the following query everything works fine. The subform stays where it is like it is supposed to.
SELECT *
FROM ((tblStudents LEFT JOIN tblStudentsBus ON tblStudents.strStudentID = tblStudentsBus.strStudentID) LEFT JOIN tblStudentsMedical ON tblStudents.strStudentID =
tblStudentsMedical.strStudentID) INNER JOIN tblUserStudentsSelection ON tblStudents.strStudentID = tblUserStudentsSelection.strStudentID
WHERE (((tblUserStudentsSelection.strUserID)=[application].[currentuser]));
Any errors in the vba code behind is impossible (in fact there is only minimal code like GoToRecord, no requery nothing.... it MUST be in the query since this is only envirnomental difference.
Some background to the queries:
These will display Students joined together with extra bus and medical data plus an extra table containing a simple boolean for this entry to be or not be selected. Since every Access user can have his/her own selection this is linked to [application].[currentuser]. The only difference between both queries is the last displaying ALL students and the first displaying Students who left the school already (tblStudents.dtmLeavingDate <= [forms]![frmToDo]![gdtmVirtualDate] - an always present (current or virtual) date).
Unfortunately I cannot provide the database itself since it contains 12 Megs of confidential data already, but maybe someone has an idea where this Jumpy-behavior is hidden the query??
Thanks a lot in advance
waldemar