Results 1 to 3 of 3
  1. #1
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2003
    Join Date
    Jun 2016
    Posts
    237

    queries, editing a specific field


    Hi all,
    I have a complicated query with the following SQL
    Code:
    SELECT [FirstName] & " " & [FathersName] & " " & [GrandFatherName] & " " & [FamilyName] AS NameOfStudent, tblSchoolYears.SchoolYear, tlkpGrades.GradeLevel, tblGradeSection.GradeSection, tblStudents.PlaceOfBirth, tblStudents.BirthDate, tblStudents.IdentitiyCardNumber, tblDistricts.City, tblJoinStudentsYears.CurrentStudent
    FROM tlkpGrades RIGHT JOIN ((tblGradeSection RIGHT JOIN (tblStudents LEFT JOIN (tblSchoolYears RIGHT JOIN tblJoinStudentsYears ON tblSchoolYears.pkSchoolYears = tblJoinStudentsYears.fkSchoolYears) ON tblStudents.pkIdNumber = tblJoinStudentsYears.fkStudentGrade) ON tblGradeSection.pkGradeSection = tblJoinStudentsYears.fkGradeSection) LEFT JOIN (tblDistricts RIGHT JOIN tblStudentAddresses ON tblDistricts.pkDistrictId = tblStudentAddresses.fkDistrictID) ON tblStudents.pkIdNumber = tblStudentAddresses.fkIDNumber) ON tlkpGrades.pkGrades = tblJoinStudentsYears.fkGrades
    WHERE (((tblSchoolYears.SchoolYear) Like [Forms]![frmStudentsLists]![cboSchoolYear]) AND ((tlkpGrades.GradeLevel) Like [Forms]![frmStudentsLists]![cboGradeLevel]) AND ((tblGradeSection.GradeSection) Like [Forms]![frmStudentsLists]![cboGradeSection]) AND ((tblJoinStudentsYears.CurrentStudent)=True))
    ORDER BY [FirstName] & " " & [FathersName] & " " & [GrandFatherName] & " " & [FamilyName];
    Is it possible to edit CurrentStudent field?

    Sincerely yours
    Khalil

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    depends on the query, due to some joins it wont allow you to edit fields.
    you may have to use a single table query (to edit) but filter using other fields.

  3. #3
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2003
    Join Date
    Jun 2016
    Posts
    237
    Hi,
    Thank you.

    I created a another query and it worked fine.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 01-28-2016, 04:37 PM
  2. Replies: 3
    Last Post: 04-07-2015, 10:37 AM
  3. Editing queries criteria with VBA
    By snipe in forum Queries
    Replies: 2
    Last Post: 11-12-2013, 12:09 PM
  4. Replies: 3
    Last Post: 05-03-2013, 09:03 AM
  5. Editing data from multiple queries
    By MHernan1 in forum Queries
    Replies: 2
    Last Post: 08-16-2012, 05:01 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums