Results 1 to 5 of 5
  1. #1
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107

    Access Query Does Not Allow Data Entry

    Hello,



    I'm trying to build an update query with three tables. But when I add the third table it does not allow edits.

    This is the query before I add the third table. It allows data entry

    SELECT tblOrderStatus.OrderNum, tblOrderDetails.PlannerGroup, tblOrderStatus.SID, tblOrderStatus.PlannerUserName, tblOrderStatus.AssignUsername
    FROM tblOrderDetails INNER JOIN tblOrderStatus ON tblOrderDetails.OrderNum = tblOrderStatus.OrderNum
    WHERE (((tblOrderStatus.SID)=1));

    This is with the third table that does not allow data entry. The join between the third table is LEFT JOIN tblObjectUser ON tblOrderDetails.PlannerGroup = tblObjectUser.PlannerGroupID

    SELECT tblOrderStatus.OrderNum, tblOrderDetails.PlannerGroup, tblOrderStatus.SID, tblOrderStatus.PlannerUserName, tblOrderStatus.AssignUsername
    FROM (tblOrderDetails INNER JOIN tblOrderStatus ON tblOrderDetails.OrderNum = tblOrderStatus.OrderNum) LEFT JOIN tblObjectUser ON tblOrderDetails.PlannerGroup = tblObjectUser.PlannerGroupID
    WHERE (((tblOrderStatus.SID)=1));

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Review http://allenbrowne.com/ser-61.html Guessing the 7th cause pertains.

    Why are you including multiple tables?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    sparker75 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jul 2018
    Posts
    107
    I need to link the tables to get the username that will be added as an update

    tblObjectUser.USERNAME will be updated to tblOrderStatus.PlannerUserName and tblOrderStatus.AssignUsername

    The link is LEFT JOIN tblObjectUser ON tblOrderDetails.PlannerGroup = tblObjectUser.PlannerGroupID


    SELECT tblOrderStatus.OrderNum, tblOrderDetails.PlannerGroup, tblOrderStatus.SID, tblOrderStatus.PlannerUserName, tblOrderStatus.AssignUsername, tblObjectUser.USERNAME
    FROM (tblOrderDetails INNER JOIN tblOrderStatus ON tblOrderDetails.OrderNum = tblOrderStatus.OrderNum) LEFT JOIN tblObjectUser ON tblOrderDetails.PlannerGroup = tblObjectUser.PlannerGroupID
    WHERE (((tblOrderStatus.SID)=1));


    This will be done as a mass update.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Then might have to use DLookup() but I don't really understand what you are trying to accomplish. Would have to review your data structure.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    Is there any way you could run a second query against your data set to add the User? Because as long as there is a LEFT JOIN it won't work.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-21-2015, 10:57 PM
  2. Replies: 7
    Last Post: 03-05-2015, 07:34 AM
  3. Replies: 5
    Last Post: 03-09-2014, 07:16 PM
  4. Replies: 7
    Last Post: 02-08-2014, 12:31 PM
  5. Data entry of Web Forms to Access
    By psanghvi in forum Forms
    Replies: 1
    Last Post: 01-31-2011, 02:48 PM

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