Access Database Form Wont' Allow me to Update Records

squeakums

Well-known Member
I'm ultimately trying to setup an access database form, that has current data in it from an imported excel file that can allow updates. I have the form built but when I try to type in the fields it says "This Record set is not updateable". I do keep trying to setup the primary key but it won't allow to save?

I want to be able to make changes to the data and also refresh the data in an access database. First, what is the best strategy to load this data to do that or link it?

Second, I want to be able to modify those records in the form and then upload those changes or open the excel file and hit refresh to upload those changes, is that possible in Access?
 

Joe4

MrExcel MVP, Junior Admin
If it is a linked table, you will not be able to update the records from Access (at least not without some complex VBA code). And you cannot add fields to a linked table from Access.
If you want to be able to update the data tables in Access, then it is best to import the data into an Access table. You can set up an Autonumber field for a primary key, to satisfy that requirement.

Is the Data Source of your Form the table directly, or a query based on the table?
If it is a query, note that there are a number of reasons that a query may not be updateable. See here: http://allenbrowne.com/ser-61.html
 

squeakums

Well-known Member
Can you convert the linked table to a local table and setup the primary key and make edits in that form that way? Or, since its already loaded, how should I load the table to where it isn't linked or unlink it? Sorry, I'm not great at access.
 

Joe4

MrExcel MVP, Junior Admin
There are a few ways to make a Linked Table a local Table:

1. You can create a Make Table Query from your Linked Table to create the local Table
2. You can import the source of the Linked Table to created the local Table
3. You can create the shell of the local Table that you want (i.e. create a new table, with all the appropriate fields), then run an Append Query from the Linked Table to this new local Table

There first two options are probably the easiest. There are even tutorials/YouTube videos that show you how do this, that you can find with a simple Google Search.
 
Last edited:

Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Macro to copy values across rows and transposing them and add the user id
    [FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]Hi,[/COLOR][/SIZE][/FONT] [FONT=Times New...
Top