Hope this helps, as I am still very much a novice in this area.
The tables are ordinary tables that I have imported from a sql database that
I have read only access to. I can change the data within these tables. The
UserID in the dbo_UserDetails table is the primary key and is indexed. This
is linked by a relationship to the StudentID in the other table, but only
where the joined fields in both tables are equal. The StudentID is also a
primary key and indexed.
The select query is as shown below, I cannot change the information in the
query:
SELECT dbo_UserDetails.LastName, dbo_UserDetails.PrefFirstName,
[lastname]+", "+[preffirstname] AS [Full Name],
dbo_MIS_CORE_VIEW_StudentListSimplified.TutGrpName,
dbo_MIS_CORE_VIEW_StudentListSimplified.YearGrpID,
IIf([yeargrpid]=1,10,IIf([yeargrpid]=2,8,IIf([yeargrpid]=3,11,IIf([yeargrpid]=4,9,IIf([yeargrpid]=5,7,0))))) AS [Yr Group], dbo_UserDetails.DateOfExit, *
FROM dbo_MIS_CORE_VIEW_StudentListSimplified INNER JOIN dbo_UserDetails ON
dbo_MIS_CORE_VIEW_StudentListSimplified.StudentID = dbo_UserDetails.UserID
WHERE (((dbo_UserDetails.PrefFirstName)<>"Emarkbook") AND
((dbo_MIS_CORE_VIEW_StudentListSimplified.TutGrpName)<>"LEAVER") AND
((dbo_UserDetails.UserType)=1))
ORDER BY dbo_UserDetails.LastName, dbo_UserDetails.PrefFirstName;
Is there anything else you may need to understand my problem?
Duane Hookom said:
I would suggest you provide more details as asked by John "Beyond that we
would need to know more about your table structure and query."
Are there primary key fields in the tables and does Access identify them?
What are the SQL views of significant queries?