Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 August 16th, 2007, 01:55 PM
Authorized User
 
Join Date: Apr 2007
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default Edit Table through a Form

I am trying to edit a table through a text box on a form instead of directly in the table, but cannot edit the data.

1. The form is set up with its own query as a recordsource to a table.
2. Control source for the text box on the form bound to a field in the table recordsource at the control source.

3. Locked property is set to no, Allow Edits, Data Entry,Deletions, Additions are all set to yes.

It seems like I have everything set up logically to do this, but I am stumped because I cannot edit anything on the form for some reason.

Any helped on what I am doing wrong would be appreciated.

Stumped,
Coby.


 
Old August 16th, 2007, 02:12 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

More info:

Is this based on a query? If so, is the query updatable? Try updating the query in the query designer and see if you can do that first.

Is the data on a remote DBMS, like SQL Server? Or local or remote Access tables, etc.



mmcdonal
 
Old August 16th, 2007, 02:28 PM
Authorized User
 
Join Date: Apr 2007
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, this is based on a query which, after a couple tests, is not updatable either. The table is a remote access table.



 
Old August 17th, 2007, 07:10 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You would need to base the form on an updateable recordsource then. I am not sure what will work for you, not having seen the structure and without knowing your needs.

You may have to move to an update process that happens behind the form with code if there is no other way to display the data you need.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 6 (edit the table) mekanaren BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 October 27th, 2006 09:40 AM
Edit form mrideout BOOK: Beginning ASP.NET 1.0 0 August 25th, 2004 04:32 PM
Edit value from Table acdsky Classic ASP Databases 1 June 28th, 2004 10:11 PM
How form can edit mateenmohd VB Databases Basics 2 June 22nd, 2003 02:43 AM





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