473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Access 2010 -- need Application.SetOption method string to shut off autocorrection

I need to be able to shut off the AutoCorrect "feature" within Access 2010 code. I have utilized Application.SetOption with method strings for other startup requirements, but I cannot seem to find a correct method string to turn off the text replace "feature." I am not talking about the "Track Name AutoCorrect Info" method, but rather the method that corresponds to the checkbox if one were to enter Access 2010 and click File, Options, Proofing, Autocorrect Options, Replace text as you type. Application.SetOption "Replace text as you type", False kicks out an error "Replace text as you type" is an invalid name (error 2091). Same with "Spelling text as you type" and "Replace Text As You Type" and any other permutation that I can think of. Does anyone have the correct method string? Thanks in advance.
Jan 29 '11 #1
2 7298
Stewart Ross
2,545 Expert Mod 2GB
Hi. I'm sorry to say that after checking MSDN, help entries and the Access object model I've not come across a means of setting the specific global autocorrect settings for Access. SetOption does not appear to support the ReplaceText component of the AutoCorrect option dialogue, as it does not appear in the properties that can be set from VB (see this link from MSDN for reference).

Further, although there is an Autocorrect object in Access it does not have the same properties as the same-named Autocorrect object in Excel.

Had this been Excel you could simply have written

Expand|Select|Wrap|Line Numbers
  1. Application.AutoCorrect.ReplaceText = False
but Access does NOT support this, as the Access AutoCorrect object has no equivalent properties to the Excel AutoCorrect object.

I would suggest that in the circumstances you will have to turn off autocorrect for each of the textboxes or other controls concerned individually. This can be done from the properties of the textbox itself in design mode, by setting Allow Autocorrect to No, or in VBA like this:

Expand|Select|Wrap|Line Numbers
  1. Me!YourTextBoxName.AllowAutoCorrect = False
I find it somewhat concerning that there are such limiting differences in the behaviour of application objects of the same name within the Office environment.

-Stewart
Jan 29 '11 #2
We have these regarding Auto Correct:

Application.SetOption "Perform Name AutoCorrect", True ' False
Application.SetOption "Log Name AutoCorrect Changes", True ' False
Application.SetOption "Track Name AutoCorrect Info", True ' False
Jun 21 '11 #3

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

Similar topics

1
by: Daniel | last post by:
System.IO.StreamWriter Close or Flush method to shut down the computer in such a way that just part of the file is written? or an empty file is written? Also if the Close or Flush is to a...
1
by: Bobbak | last post by:
Hello All, I have this form and Onload I want it to check to see if the following is set to False: Application.SetOption "Confirm Record changes" Application.SetOption "Confirm Document...
6
by: billr | last post by:
I have developed a small API for taking care of a lot of boiler plate stuff in a multi formed windows application, for example setting up a messaging thread framework. New Forms, in the...
7
by: Tee | last post by:
Hi, I need some help here for DSN connection string. I know it's not recommended to use DSN, even I dont like it as well ... but for now, my situation is I am using a shared hosting. I do not...
8
dima69
by: dima69 | last post by:
I'm looking for complete list of options that could be set using Access user profile. All I could found till now are some rather "harmless" options like TitleBar, Icon, StartupScreen and AppHelpFile....
1
by: phill86 | last post by:
Hi, I have an access 2010 database that I want to convert to an SQL Server database and I need to know if the data macros in access will still work in the SQL database or will i have to create...
5
by: jaad | last post by:
Hello, I have a database that was written in access 2007 on my pc. I wanted to work off site with the database so I uploaded it onto my laptop which is loaded with access 2010 beta. When I...
2
by: sierra7 | last post by:
It seems Access 2010 is associating an 'input mask' or field type with a combo box when a form is opened, even though there is no Format setting on the control. I have a form which has been...
2
by: dougancil | last post by:
I have a user who had deleted some records from a database today using Access 2010. They have an ID field that's autonumbered. They have No Duplicates allowed. When they created a new record today,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.