Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Cannot insert new record into sql 2005 View from Access form

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  Wild Cards  
Author Message
NancyM

External


Since: Jan 19, 2010
Posts: 1



(Msg. 1) Posted: Tue Jan 19, 2010 10:16 am
Post subject: Cannot insert new record into sql 2005 View from Access form
Archived from groups: microsoft>public>access (more info?)

I have a sql server 2005 database containing several tables: Orders,
Shipping, and Planning. They are joined together in the sql view V_Main. I
also have a ms access 2007 mdb that links to V_Main via odbc. I created an
access form using the view V_Main as the record source. I cannot insert a
new record into each of the 3 base tables using V_Main as the record source.
A new record is inserted into only one table.
I did find a suggestion in another forum that suggested copying the sql that
creates the view into the form's record source, rather than the name of the
view. This does work, but adds another place to be updated manually should
and other table be added to the view in the future.
I did verify that all tables have primary keys.
How can I add a new record for each of the 3 base tables using the view as
the record source? What is the code that could be placed in vb of the form?
Any suggestions would be helpful.
Thank you.

 >> Stay informed about: Cannot insert new record into sql 2005 View from Access form 
Back to top
Login to vote
Arvin Meyer [MVP]

External


Since: Dec 4, 2008
Posts: 38



(Msg. 2) Posted: Tue Jan 19, 2010 1:24 pm
Post subject: Re: Cannot insert new record into sql 2005 View from Access form
Archived from groups: per prev. post (more info?)

I view or query generally will update 1 table. I suggest that you create 3
separate append queries, or triggers and use a form event to run them and
update the 3 tables.

 >> Stay informed about: Cannot insert new record into sql 2005 View from Access form 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Information in 'form view' not displaying in 'table view'? - Is this a common problem? Data in certain columns in my form view are not diaplying when i change to 'table view'. I need to perform calculations on the data in table view but can't access it. Any ideas? Help will be much appreciated. Thanks.

Design View from Form View - I seem to remember that it was possible to move into design view from form view by right clicking on the mouse whilst pointing at the bar at the top of the form where the caption is held. However, I do not seem to be able to do this now. Is there a..

can't insert a form into a report - access 2007 won't display a form inserted into a report. This worked with Access 2003. Any ideas???

Brain cramp, cannot add new record to form - I've got what is supposed to be a data entry form which is not working properly. I call this form from several different forms, so I've set its RecordSource to filter based on a function. My intent was to disable "Allow Additions" when ca...

Allen Brown copy record from form and subform - Hi, I can't seem to get this to work i keep getting an error on the DBEngine line of code. Can anyone help please? 'Duplicate the related records: append query. strSql = "INSERT INTO [tblProducts_Quoted] (Product_ID, ...
   Windows Help (Home) -> Microsoft Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]