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 August 9th, 2006, 08:30 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default Text Box Flow

Hi All
Is there any way of determining how text is handled when it is say pasted into a text box.
I have a text box on a form which users either type or paste into.
The problem is that when users paste into the text box it can sometimes be distorted and can cover a large space depending what way it was typed into the original document.
Please help
Thanks

Brendan Bartley
__________________
Brendan Bartley
 
Old August 9th, 2006, 09:44 PM
Friend of Wrox
 
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use the After Update event of the text box to do some validation.

Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com
 
Old August 14th, 2006, 05:40 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there a code I could user to change the text format
Thanks

Brendan Bartley
 
Old August 14th, 2006, 10:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

The code depends on what exactly what you want to do. If you just want to change the text color and/or font, just change the textbox properties. If you want to change font type, bold, italics, color, etc. only SOME of the textbox text then you're getting into rich text formatting that Access alone does not provide.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old August 14th, 2006, 10:32 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Users text items into the text box this can be e-mails etc the format of thetext can be all over the place
What I want to do is to remove the balnk spaces


Brendan Bartley
 
Old August 14th, 2006, 10:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Look up the help for the TRIM() function and also the REPLACE() function. Perhaps you can do a combo of TRIM and something like REPLACE(Me.txtMemo, " ", " ")
where you kill every double space and replace it with one. Change txtMemo to the actual name of your field.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Grab Values From List Box into Text Box phungleon VB How-To 2 June 19th, 2008 10:33 PM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM
Rich Text Box vs Text Box snowy0 VB.NET 2002/2003 Basics 1 February 17th, 2004 02:11 PM
Search using drop down list box and a text box tcasp Classic ASP Basics 1 July 31st, 2003 02:58 PM





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