473,667 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form no longer allows editing

prn
254 Recognized Expert Contributor
Hi all,

Among other things, I maintain an Access application that I have inherited from about a half-dozen previous maintainers. :(

I got a call from one of the users to the effect that one of the forms no longer allows editing of data. That is, you can click in the box, but can't change the data that appears in them. The cursor goes where you click, it sits there and blinks, but when you try to type or delete, nothing happens.

The data resides on a SQL Server with the Access piece being a front-end containing forms and queries with links to the tables. I pulled down the Linked-Table Manager and refreshed all the linked tables. That didn't help.

I checked the properties of the affected textboxes. they are Enabled and NOT Locked. Another idea that came up in my web search was that some queries are not updatable. It struck me that if something changed without my realizing it, the element that changed could as easily be the query as the form, so I checked that. I got an old version of the Access database (front-end) and checked the corresponding form on that. The fields were editable. I then copied the SQL from the record-source query for the table from both versions of the database and ran them through WinMerge (a diff utility), which reported that they are identical.

I also used Tools|Analyze|D ocumenter to create descriptions of the form from the old and new versions. I selected everything in the options and exported them both to .txt files and then compared them with WinMerge. Aside from one small wording change that I had made several months ago the only other differences were a number of places where some previous maintainer had changed the case of several variables from lower to upper. Otherwise nothing.

I've about run out of ideas. Do any of you folks have any clues for me? What else might cause this kind of behavior?

Thanks,
Paul
Jun 4 '09 #1
10 2096
NeoPa
32,568 Recognized Expert Moderator MVP
  1. I would get the underlying query (or SQL whatever) and open it directly. Then test that it is still updatable.
  2. Check through each property of the form and the relevant controls to see if anything unexpected has caused the issue.
That's all I can think of for now, as that (#1) also covers any potential problem updating data of the SQL Server from Access (which I have experienced recently with large updates and a SQL Server running short of resources).

Good luck!
Jun 4 '09 #2
prn
254 Recognized Expert Contributor
Hi NeoPa,

Thanks for your advice. I eventually just rolled back by one version, which was enough, and then redid the latest change. I still have no clue what went wrong with that form or why, and that bothers me, but after wasting hours trying to make sense of it, I figured that it was time to move on.

Thanks a lot,
Paul
Jun 5 '09 #3
NeoPa
32,568 Recognized Expert Moderator MVP
Clearly a man of wisdom Paul :)

When to let go and try a different route is often a hard thing to see.
Jun 5 '09 #4
missinglinq
3,532 Recognized Expert Specialist
And you thought that your instructors were just being picky when they said "Back up, back up, back up!"

;0)>
Jun 5 '09 #5
prn
254 Recognized Expert Contributor
And don't forget the importance of change logs. I'd really be up the creek if I couldn't remember what change I'd last made.

Paul
Jun 5 '09 #6
missinglinq
3,532 Recognized Expert Specialist
Excellent point! I love it when an OP says "I made a few changes and now my form doesn't work." and when you ask "What changes?" they go, "Oh, I'm not really sure!"

You want to quote Bill Cosby: "Was your head not attached to your body that day?"

;0)>
Jun 6 '09 #7
prn
254 Recognized Expert Contributor
In this case, the change made between the (then) latest and penultimate versions had nothing to do with this form. It was off in an entirely different module that is not used in this form. The application in question contains a bit over 200 forms (including subforms) and 1250 queries (some, i don't know how many, are actually obsolete and unused).

Some of the "features" of the database are probably used no more often than once in two or three years. In fact, last Friday (today is Monday) I spent pretty much the entire day recovering data that was dropped by a macro. The macro was needed in the first place because some previous maintainer had denormalized data and then he or an intermediate maintainer had needed to change some of that denormalized data, so he (as far as I know all of them have been "he"s) made up a macro to remove the relevant data from a table, change it as well as the corresponding data in the table where it should have been in the first place, and then copy the changed data back into the table it had been removed from. The problem was that someone (possibly one of those two or possibly someone else) had added another, required, field to that table in the meantime and now the query that reinserted the data back into the table it had been deleted from failed. The temporary table then got dropped and the data was gone, causing me to spend hours trying to recover it as well as trying to figure out what happened to it. Needless to say, it took a lot longer to diagnose this comedy of errors than to describe it here. :(

Paul
Jun 8 '09 #8
NeoPa
32,568 Recognized Expert Moderator MVP
Don't you just love it when you're passed a crock to look after.

"Here, just take this and make a small amendment to it to produce a report differently.

Oh, and by the way, it's an abortion that was created by the lobotomised offspring of a lower-level demon. Enjoy!
"
Jun 8 '09 #9
prn
254 Recognized Expert Contributor
Oh, that isn't the half of it!

This one has truly made the rounds. Even just the "interestin g" variation in naming conventions gives life such spice. Some examples (all query names):
  • Site Enrollment report -- with spaces between words
  • ServiceAgreemen tsPrinted -- using Pascal case
  • Site_activation _query -- with underscores separating words
  • Adm letter_UPDATE_q uery -- with one space and two underscores.
  • qBookOrder -- with a 'q' prefix and Pascal case
  • q_BookOrder_for m -- with a 'q' prefix and mixed Pascal case and underscore
  • qryEmailCount -- with a 'qry' prefix and Pascal case
  • qry_Bookstore_O rder_XLS -- with a 'qry' prefix and underscores
  • QUpdateOrderQty -- here the 'q' prefix is capitalized
  • QtEMPUPDATE -- Looks like the CapsLock was on and so cases reversed
  • frmSiteBrowseDr op -- with a prefix that makes it look like a form rather than a query.
Talk about anti-mnemonic naming! It drives me nuts just trying to remember where to look for a query even when I remember the "content" part of its name.

Paul
Jun 8 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

72
5188
by: Stephen Poley | last post by:
I have quite often (as have probably many of you) come across HTML forms with irritating bits of Javascript attached. The last straw on this particular camel's back was a large form I was asked to complete in connection with attendance at a seminar. After spending more than 15 minutes on it, I clicked on the submit button - and nothing happened. Looking round the pages on Javascript form validation that Google produced for me (well,...
8
4298
by: Sergio Otoya | last post by:
Hi all, I need to add an input hidden field to an existing form (post). I have tried a couple things like adding the '<INPUT type=hidden name=idSelectedURL value=http://server/documents>' to the innerHTML of the form but it fails. ie
2
7602
by: Jason G | last post by:
** Any assistance you can provide would be greatly appreciated ** I have a main form with multiple sub-forms. On the main form, I have a checkbox that corresponds with each sub-form, and this checkbox will express the users desire to lock the ability to edit a corresponding sub-form. To do this, I figure that each checkbox will have : (1) the AfterUpdate property call a Macro or VB Module to execute the setting of the Allow Edits...
6
2136
by: allyn44 | last post by:
HI--what I am trying to do is 2 things: 1. Open a form in either data entry mode or edit mode depending on what task the user is performing 2. Cancel events tied to fields on the form if I am in edit mode. The reason I want to do this is becasue when entering a new record the form is entered in data entry mode and I have lots of stuff happening upon entering and leaving fields. In edit mode I do not want the events to fire.
11
3695
by: TD | last post by:
I'm looking for input into my decision to switch to ADO and unbound forms. I get tired of having to block all of the ways a user can unknowingly save a record, like using the PageUp, PageDown keys and the scroll wheel on the mouse. Also, I think that as the database grows in size that it will eventually be moved to SQL Server 2005 Express. With all of that said I started using ADO to manually work with my unbound forms. It is a lot of...
17
11702
by: radio1 | last post by:
Configuration: Access 2002 and SQL Server 2000 using a .ADP Project. I would VERY MUCH appreciate anyone's input into this problem I'm having. I have a form in Access that does not permit the user to add/change/delete any data, apparently as a result of adding a GROUP BY clause to a View used indirectly as the form's Record Source. I really don't believe that this restriction needs to be there, and I'm hoping that someone can suggest...
3
2239
by: Robert McEuen | last post by:
Using A2K3, Windows XP I'm handling a many-to-many relationship with a linking table structure as follows (irrelevant fields omitted): tblIssue PK_IssueID (autonumber, primary key) IssueName (text) tblArea
4
2262
by: Martin Bentler | last post by:
I have a form that is locked for editing, adding or deleting. Through the use of a command button I open another form, that allows editing, plus allows the user to other areas of the database, through command buttons. When I click the command button I want to open the second form displaying the CompanyName and information from the first form (the record I had displayed on first form, but open for editing. On the second form I have a command...
3
2821
tdw
by: tdw | last post by:
Hi all, I am trying to create an Access database for use purely as a more efficient way to enter fields into a Mail Merge for a friend who is an attorney. Currently, I am using Word's mail merge, but the problem with that is that it is time consuming and inefficient because there is no way to set it up to recognize commonly used entries and autofill the field. The first paragraph of the form letters look something like this (the parts...
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8646
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6203
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.