Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 10-31-2018, 06:31 AM
shabbaranks shabbaranks is offline Converting a Select statement in Excel to an update statement Windows 7 64bit Converting a Select statement in Excel to an update statement Office 2007
Advanced Beginner
Converting a Select statement in Excel to an update statement
 
Join Date: Mar 2011
Posts: 89
shabbaranks is on a distinguished road
Default

Hi,
Hopefully Im not confusing my original question.


Im using access to create and run the query but I would like the data to be in SQL.
Currently I have an Excel spreadsheet which is a replica of the table - linked to Access. This spreadsheet has the missing records in Column A.


I have the live SQL data\table linked to Access (which has the missing records) and I have created the following query to update the SQL table with the missing records


UPDATE Data INNER JOIN Table1 ON Data.unique_id = Table1.unique_id SET Table1 = [Data].[Record]
WHERE (((Table1.ST_Period)="07") AND ((Table1.ST_Year)="18"));


If I test this against a local copy of the SQL table it works if I try and run the update query against the SQL table it errors as above operation must use an updatable query.


If I try to run an update query from the working local table to the sql table it errors also with operation must use an updatable query.
Thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
EXCEL IF STATEMENT Help bksmith Excel 3 07-27-2021 07:01 AM
Directional help in constructing an Excel 2016 If, Or, And Then Formula Statement Gwilson Excel 3 04-13-2017 11:31 AM
Help! figuring if statement with 2 vlookups excel 2013 MWATKINS7111 Excel 3 02-24-2017 12:58 AM
select statement in macro Nicolette Excel 1 11-19-2013 01:38 AM
Converting a Select statement in Excel to an update statement Select statement to a new document ishaw Word 1 10-17-2011 02:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft