Question : Create a query in access 2007 that updates data in MS SQL 2005

Ok I'm trying to use access to act as a front end for a MS SQL 2005 database (not Express).  I can create the linked tables using an ODBC connection and I can edit data in the tables directly and see it replicate to the database.  I then create a query to put all the fields I need into the form I wish to present to the user and neither the query nor the form can update the table. I see that a query can be designated as an "Update Query" but when I click the control to switch the query type it prompts me for nothing at all, then if I try to run the query I get the error "Query must have at least one destination field".  I understand that it wants to know which feild to update but I can't seem to figure out how i would assign that field...

If on the other hand I create the same table in access it writes to it without any change of query type.

Answer : Create a query in access 2007 that updates data in MS SQL 2005

>The reason that I don't have the new table in the view in the first place is that all the data in that table is going to be comming from the Access front end.

From a technical standpoint, it's simpler to join all the tables on SQL Server and present the view to Access.  The only issue would be controlling update access to the application tables from the Access FE.  But I think it's doable and I suggest giving it a try.

If that doesn't work, then the a non-updateable view can still be the basis for your main form.  However, you would then use a linked subform for the table you want to update.

If you like, post your DB and I'll have a look


 

Random Solutions  
 
programming4us programming4us