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 October 5th, 2006, 01:01 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default on KeyPress Help

Hi all,

Just new here and i am looking for a answer for the problem that i can't work out.

I have a text box, just one large box i want to be able to insert data into and go to the next line to enter more text in. Instead of having to press control + Enter i just wanted to press enter, i was hoping that someone in this forum would know the code to do this in Access 2003 Visual Basic. If so i would be very grateful if someone could put the code for me to use.

Thanks

Shane

 
Old October 5th, 2006, 06:42 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You need to use a rich text box control. This is an ActiveX control, so there are issues with compatibility with your users there. You will need to get your system administrators involved to configure your workstation images, if you work in such an environment.



mmcdonal
 
Old October 5th, 2006, 06:58 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I realise this may be the case, but is there any easy code i can do in Visual basic editor in order to make this happen without the Active X, needing to be used.

 
Old October 5th, 2006, 07:08 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure since using return sends the cursor back to the tab control. You could loop the cursor by taking all the other fields off the tab stop, and limiting the cursor to the current record, but then hitting return would take the cursor back to the top of the text box, not to the next line.

Anyone else have a solution?


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
keypress umeshtheone Beginning VB 6 0 June 9th, 2007 12:38 AM
keypress event kau_shuk VB.NET 2002/2003 Basics 1 July 31st, 2006 11:21 AM
KeyPress event jbenson001 VB.NET 2002/2003 Basics 1 March 24th, 2005 04:52 PM
Keypress Event bharatsaboo VB.NET 2002/2003 Basics 0 February 25th, 2005 03:34 AM





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