I have a linked table and a form. But I dont see where you can add data to the linked table
I have a linked table and a form. But I dont see where you can add data to the linked table
Not directly as a linked table.
However have a read here :
https://www.access-programmers.co.uk...access.322079/
DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
Please use the star below the post to say thanks if we have helped !
↓↓ It's down here ↓↓
I tried the query and can't get past "Syntax error in FROM clause". And yes, I changed the file path and sheet name.
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.
what is your sql?can't get past "Syntax error in FROM clause".
As my post at AWF explains, you CAN directly edit a linked Excel table by changing the IMEX settings from the default IMEX=2 (read only) to IMEX=0 (editable)Not directly as a linked table.
However have a read here :
https://www.access-programmers.co.uk...access.322079/
Query from tutorial with my sheet name and file path:
Code:SELECT XL.* FROM (SELECT * FROM [Units$] AS xlData IN 'C:\Users\Owner\June\MyStuff\Condos.xlsx' [Excel 12.0;HDR=yes;IMEX=0;ACCDB=Yes]) AS XL;
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.
trying to determine which FROM is causing the issue as the syntax works fine for me - what if your try removing the alias? - and is Units the name of a worksheet or a range?
SELECT * FROM [Units$] AS xlData IN 'C:\Users\Owner\June\MyStuff\Condos.xlsx'
[Excel 12.0;HDR=yes;IMEX=0;ACCDB=Yes]
Whilst that code should work, the easier method is to link the Excel file as a linked table.
If you do that, there is no need to run an external query
Try using the example app included in the web version of my article: Edit Linked Excel Data from Access (isladogs.co.uk)
Either works for me.Code:SELECT * FROM [Stock$] AS xlData IN 'F:\Users\Paul\Documents\Stock Quotes.xls' [Excel 12.0;HDR=yes;IMEX=0;ACCDB=Yes] SELECT XL.* FROM (SELECT * FROM [Stock$] AS xlData IN 'F:\Users\Paul\Documents\Stock Quotes.xls' [Excel 12.0;HDR=yes;IMEX=0;ACCDB=Yes]) AS XL;
Thank you.
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba
I have edited the connection string to make the linked Excel file editable in Access
However, as you didn't supply the linked Excel file, I can't test whether that setting will 'stick' for you
VBA changing connection string of linked sheet did work.
And crud. I deleted the worksheet link, copy/pasted my SQL from post 8 and tried the query again. Now it opens without error. Bizarre!
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.