Results 1 to 8 of 8
  1. #1
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30

    Editting data from a Query

    Hello

    I have a query which shows a list of training completed but haven't been checked off so this list is for people to check that they are happy they did training. There is a field in the table called confirmation which is a check box and the query is looking at all the records where confirmation is false. I was hoping to run the query then people can click the confirmation box and then update the table. Being new to Access didn't realise standard queries can't update tables.
    Any ideas how I can get round that.

    Thank you



    Neil

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Yes, a 'standard' query WILL update tables. (select query?)
    If you have a single table with the boolean field, it will update live, as soon as the person marks it.

    If you cant update it, then you may have a join with 2 tables that wont allow it. Simplify the query.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Typically for a query to be updatable it has to have a RIGHT JOIN or LEFT JOIN (in other words the arrow pointing from one table to another has an arrow on it) and you have to be linking the tables based on a primary key. If you can show a screen shot of your query design that's a starting point.

    Also, if you are running any type of aggregate query (the TOTALS line in the query design window is showing) the query will never be updatable.

  4. #4
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30
    Click image for larger version. 

Name:	query screen shot.png 
Views:	13 
Size:	27.1 KB 
ID:	20557

    As you can see my query does link two tables but the data that is being updated is for the one table. The only reason I need the operative table is to filter so only the current users detatils come up.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Perhaps the field HARTFacilitator is not Indexed. Also, why not store the user ID in a Global Variable or in a control within your main menu form?

  6. #6
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30
    The getusername is a global moduale which pulls up the username they are using on the work computer they are on. That then matches the username field in the table which is the only reason I need that second table.

  7. #7
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30
    The getusername is a global moduale which pulls up the username they are using on the work computer they are on. That then matches the username field in the table which is the only reason I need that second table.

  8. #8
    Paranap is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    30
    I have just tried it by taking out the relationship between Payroll and the HARTfacililator which then allows me to edit the table thank you.

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

Similar Threads

  1. Replies: 6
    Last Post: 08-17-2014, 06:14 PM
  2. Access Form Editting Tab control
    By Z1nkstar in forum Forms
    Replies: 3
    Last Post: 04-07-2014, 01:12 PM
  3. Replies: 2
    Last Post: 12-17-2012, 03:46 PM
  4. Replies: 27
    Last Post: 08-14-2012, 09:05 AM
  5. Replies: 13
    Last Post: 10-26-2011, 03:49 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