473,378 Members | 1,492 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,378 software developers and data experts.

Spell Check fails on unbound control

To prevent data corruption I have replaced a memo field on my form with
an unbound control on my form that I populate with a function that
fills it from a memo field from my table. When the form is closed,
another function in a query writes it to the memo field. No trouble.

When I run spell check on the form it makes the corrections in the memo
field, but does not save them when I write from the form:

I put this in the AFTERUPDATE property of the [LocalNote] control(the
unbound control):

Private Sub LocalNote_AfterUpdate()
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSaveRecord 'saves the rest of the record
DoCmd.OpenQuery "q_UpdateNote" 'update query to copy memo
DoCmd.SetWarnings True
End Sub

The "q_UpdateNote" query fills the memo form with a function

Public Function CopyMemo()
' this allows a memo field to be used in an update query...
CopyMemo = Forms![Session_No_Client]!LocalNote
End Function

It takes any change in the LocalNote field that I type in, but NONE of
the changes in after spell checking it. This is true whether I spell
check with
{F7} or
docmd.runcommand accmdspell

Thanks in advance for any help you can give me.

-Jim

Nov 13 '05 #1
1 2626
I found a solution. {F7} won't work at all. I created a button and put
the following code in it:

Private Sub Spelling_Click()
DoCmd.SetWarnings (False)
DoCmd.RunCommand acCmdSaveRecord 'just to be safe
DoCmd.RunCommand acCmdSpelling
DoCmd.OpenQuery "q_UpdateNote" 'copies unbound memo to table's
memo
DoCmd.SetWarnings (True)
End Sub

This seems to work fine. I'm not sure why running the query in the
AfterUpdate property of the field won't work. It looks like it doesn't
accept the changes made by the spell checker as 'Updates'. Quirky!

Jim

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kk | last post by:
..NET Winforms Control for Spell and grammar check with formatting capabilitie ------------------------------------------------------------------------------------------- Need a control which has...
0
by: evilhanz | last post by:
I am using Mr. Lebans' RTF2 Control v1.4. I have managed to spell check its contents but it's a terrible kludge. Here's how I do it: 1) Put a textbox on the same form as the RTF control and...
7
by: Hank Reed | last post by:
I am trying to use the spell checker on an unbound control in Access 2000. I run the checker in the AfterUpdate event of the control. After the spell checker is done, I get the following message:...
8
by: Steve Jorgensen | last post by:
There's this app I wrote a long time ago for a client who uses it to administer the database content that drives their Web site. Last time I was in there' I notices a lot of embarassing typos in...
2
by: Bhupesh Naik | last post by:
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to construct letters. The browser based screens...
3
by: Jason L James | last post by:
Dear all, I have an app that captures text entry from the user and stores it in an SQL DB. I want to make sure that the text is spelt correctly using a spell checked; possibly the one...
1
by: scprosportsman | last post by:
Please help guys, i am trying to set up a database here at work and im fairly new to access in terms of writing functions and queries and stuff. I have 2 different places on my design that will...
4
by: Owen Jenkins | last post by:
I have an application that I distribute as a 97 or 2000 mde. If the client has A2000/2/3, he uses the 2000 version. If he has 97, he uses the 97 version. If he has neither, he uses the 97 runtime....
6
by: Neil | last post by:
Is there way to have control over the MS-Access spell checking (besides just launching it)? We want to tell it to check all records, but skip certain fields (or, alternatively, ONLY check certain...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.