Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moved Access DB Queries to SQL Server Views Problem

Status
Not open for further replies.

kayek

Programmer
Jun 19, 2003
95
0
0
US
I have an Access Database linked to many SQL Server Tables. Each of the Access Database Forms had a query for it's record source. To try to speed up our database, I replaced the Queries behind the forms with SQL Server Views.

This works great EXCEPT if update information in a forms that write to multiple tables. The following error occurrs

"not updatable because the modification affects multiple base tables."

Is there anything I can do to resolve this?

To fix the problem on some forms I created subforms so each form/subform just wrote to one table but I don't like doing this because each form has required fields that need to be entered and when I move things to a sub forms it just makes things more complicating for checking required fields have been updated. The required fields change depending on the status and type of account. HELP!
 
If you open the view in the appropriate SQL server tool (names radically different between versions), can you change the data?

If so continue here, otherwise I recommend one of the SQL forums... You might get lucky and get one of the guys that knows both if you keep posting here. When you post in the SQL server forum be sure to say you made a view and you can't get it to update in xyz SQL server tool. DO NOT MENTION ACCESS: about a third of them are two dense to realize it is an SQL server problem and will tell you to post in the Access forum withou having actually read your question.
 
If I make my updates to the data using my SQL View in Enterprise Manager I do not get any kind of error about can not update data in multiple tables. I only get this error when I update the data using Access Database linked SQL Server View. I get the error when using the access forms and if update directly to the view from the Access Database.
 
I would relink the view and specify the fields to uniquely identify the record again.
 
Can you paste in the update statement that you refer to here.
"If I make my updates to the data using my SQL View in Enterprise Manager".
OR did you update in the data grid in EM?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top