Results 1 to 6 of 6
  1. #1
    cmb is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    11

    How to make an editable query?


    Hi there,

    I am currently making my 1st database and have hit a brick wall on something that I thought would be very simple. I have a query using two tables, tblOrders and tblSites. tblOrders holds the data for upcoming installations of new equipment and tblSites holds the data for the site name and address etc. My query matches the site to the order and works perfectly. But I can't edit the results which I need to be able to do in a form.

    Would someone please be so kind and explain why this is and how I can get around it. If it makes any difference the form will need a bound subform with a 3rd table, tblAppoints. This is to allow the user to view, add and change appointments associated with the installation.

    Many thanks in advance!

    CB

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Are the tables linked in your query? Can you post a screenshot or the sql? Do you get an error message and if so, what is it?

  3. #3
    cmb is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    11
    The SQL is below. There are no error messages, I just cant make any changes. For example, there are two combo boxes and I can see all the choices when I click on one but I cant change them. Thanks for the help!

    SELECT tblOrders.OrderActivity, tblOrders.OrderRequest, tblOrders.OrderNode, tblOrders.SiteID, tblOrders.OrderDesc, tblOrders.OrderPO, tblOrders.OrderNotes, tblOrders.OrderComments, tblOrders.OrderStatusID, tblOrders.OrderID, tblSites.SiteName, tblSites.SiteAddress1, tblSites.SiteAddress2, tblSites.SiteCity, tblSites.SiteState, tblSites.SiteZip, tblSites.SitePhone, tblSites.SiteEmail
    FROM tblSites INNER JOIN tblOrders ON tblSites.SiteID = tblOrders.SiteID;

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I don't see the problem! I can easily add/edit records with that sql. What is the code for the combo boxes and are they the fields that you can't edit?

  5. #5
    cmb is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    11

    Smile

    I could not change any records and finally find the cause... The primary key in tblSites had somehow been deleted. Thanks again for your help!

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Glad you got it working. Good Luck With Your Project.

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

Similar Threads

  1. Replies: 5
    Last Post: 07-15-2014, 09:56 PM
  2. Replies: 12
    Last Post: 11-21-2012, 01:51 PM
  3. Make sub query un-editable
    By esh112288 in forum Forms
    Replies: 2
    Last Post: 11-11-2012, 06:35 PM
  4. Populate Form And Make Editable
    By Rick5150 in forum Forms
    Replies: 1
    Last Post: 10-04-2011, 09:04 AM
  5. Replies: 4
    Last Post: 04-09-2010, 02:16 AM

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