Update Access Tabels using Excel tabels - sql

I got the following problem:
I imported Excel Files into my Access DB using the normal
"functions", but those now don't allow me to update the now created
Access tables.
I can only add new Datasets using this way and not update the existing
ones.
After some research it seems like this is only possible via VBA or SQL.
But how would it work? Is there a script i can use do make such an update via a button or such?
Thanks for the help.
Matthias

you can set up a linked spread sheet to your access table that will allow you to edit the data in both places iirc

Related

Datamacro can't be found after split dadatabase

I have an access 2007 database with datamacros in the tables. After splitting the database because I want multiple users to work in it they cant be found.
How do I fix this?
Open the backend database directly with Access. That should reveal the macros.

Copying Existing Access forms to a New Database

I am looking to copy few Access forms (from an existing database) to a new empty database and then link them to tables in a backend SQL server.
The forms I wish to copy over are currently linked to few tables in backend SQL server.I need to delink them from the existling tables and link them to new ones in the server.
I tried to import the forms to the new database and then in the design view changed the "record source" field to the source I wanted to link.But it did not work.
I looked up online for resources, but did not get any clear help.
I am a starter with databases and so a not-so-programmatically complicated approach will be appreciated.
Thanks!

Link Data Models to multiple files

I created a file that imports multiple tables, and then I do several modifications and calculations with Power Pivot. The problem is that I want to use the final results, not only in that current workbook, but also in other workbooks.
So my question is, is there a way to link other excel files to that data model that I created and worked on?
Please note the data changes every day, so I am looking for a permanent connection.
Appreciate any help here.
if I understand you correctly you would like to access the PowerPivot model/measures that you have created in one xls file from within other xls files.
If so, the "core" vs. "thin" workbook approach might be what you are looking for. This approach works with Excel 2010 but not with Excel 2013 however and you will need a Sharepoint Server with PowerPivot for this to work.
The approach is described in Rob Collie's awesome PowerPivot blog:
http://www.powerpivotpro.com/2011/02/powerpivot-scheduled-refresh-pt-3-thin-workbooks/
and here:
https://pivotstreamllc.zendesk.com/hc/en-us/articles/201148566-Splitting-Workbooks-into-Core-Thin-Pairs
another option is to load all your data source in one Master workbook, then write back the result in the same workbook using Reverse Linked Tables.
Now you can use that Master workbook as your backend for all your reports.
or use PowerBI Desktop as your backend, officially it is not support but Excel can have a local connection to PowerBI desktop.
I put more details here
https://datamonkeysite.com/2016/11/13/thin-and-core-workbook-without-sharepoint-or-ssas/

Change DB that Access query points to

I'm trying to make a query in Access 97 point to a different database. I cannot find out how to change the db.
I've tried adding another odbc connection but it doesn't give me the option to choose it when running the query.
I've tried to create another query but it still has the old db tables and i cannot choose the new db tables.
Any suggestions would be much appreciated.
thanks,
Nighmares
Try viewing the SQL source of your query. Is the old database name there? Can you just replace it and save your change? Another option would be to point your existing ODBC connection to the new database.
when you add another ODBC database Access will give you the option to add tables from it. You'll need to add whichever tables you need or you won't be able to access them via design view.
You can always use the Connection object to dynamically connect to any DB.

SQL behind an external data query in Excel

I have inherited an Excel spreadsheet which contains an external data query. I can edit the query, which provides a list of the columns returned, but it does provide the table that this data comes from. Is there any way to retrieve the actual SQL behind the query?
I think this may depend on the version of office you're using and the type of external data you're connecting to.
I believe if you're using Office 2003, and you're seeing columns like you say, there may be a SQL icon in the toolbar.
Click that to view the SQL used to return the data.
If you're using Office 2007, Go to the Data tab, click connections, then properties, then the definition tab, and change the command text.
However I believe you're using the first method.
This is from what I can remember, so I hope it's correct.
It could also be somewhat obsfuscated by using an ODBC link or something. Another way to get it is to run SQL Profiler on the SQL Server to see the exact SQL being executed. Of course, this won't help you edit it but you'll know what it is doing.