Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2007, 04:33 PM
Authorized User
 
Join Date: Nov 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default When is a query updateable?

I frequently create a form to update a table. I create a query to include data from a different table. For example, the update table contains a foreign key pointing to the person table, from which I want to display first and last name. I include the name in the quey to display on the form.

Frequently, my nice form turns out to be not updateable. Can anybody advise me on how to create a query and form that will allow updates?


 
Old January 31st, 2007, 10:28 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You are on the right track. Use a form and subform. Base the form on the person table, and base the subform on the table linked to the person table with a foreign key.

Then drop the subform on the main form in design view, and make sure that the parent and child fields are linked. Then you can add new people in the main form, and add items for the person in the subform.

If the query is from more than one table on your form, it won't be updateable.

Did that help?

mmcdonal
 
Old January 31st, 2007, 11:56 AM
Authorized User
 
Join Date: Nov 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That pins it down for me. Much thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
updateable query dilionyi Visual Basic 2005 Basics 7 August 16th, 2006 11:42 AM
help me ! can't updateable query ! 123123 Classic ASP Databases 1 April 18th, 2005 08:54 AM
You must use an updateable query faisar ASP.NET 1.0 and 1.1 Basics 3 July 2nd, 2004 06:59 AM
Operation must use an updateable query chaos2003 Classic ASP Databases 4 August 22nd, 2003 03:04 PM
Updateable Query Error hoffmann Classic ASP Databases 2 August 13th, 2003 09:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.