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

Need to make shift-enter behave like control-enter

Client's fingers have been well trained on another application to wrap
lines by hitting shift-enter, and wants the same in Access application.

Changing "enter key behavior" for controls is not acceptable, because
same client's fingers automatically hit Enter (instead of Tab) to move
to the next field.

How to make shift-enter behave like control-enter? I've tried various
combinations code in Autokeys, Key Preview, Key Down, Key Up, and Key
Press, with no luck.

Any solutions out there? (Please don't post guesses. I already have
lots of those.)

pemigh

Jun 2 '06 #1
2 5172
pemigh wrote:
Client's fingers have been well trained on another application to wrap
lines by hitting shift-enter, and wants the same in Access application.

Changing "enter key behavior" for controls is not acceptable, because
same client's fingers automatically hit Enter (instead of Tab) to move
to the next field.

How to make shift-enter behave like control-enter? I've tried various
combinations code in Autokeys, Key Preview, Key Down, Key Up, and Key
Press, with no luck.

Any solutions out there? (Please don't post guesses. I already have
lots of those.)
That's a good way to not get responses. Kinda snooty, standoffish,
F*ck-offish. The advice given here is free of charge. Use your
attitude if you are paying for it. I'm giving you the benefit of the
doubt and providing a possible kludge solution.
pemigh


Try this. "Notes" is the name of my memo field.

Private Sub Notes_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 And Shift = 1 Then
Dim lngLen As Long
Me.Notes = Me.Notes.Text & vbNewLine
lngLen = Len(Me.Notes.Text)
Me.Notes.SelStart = lngLen
Me.Notes.SelLength = 0
End If
End Sub

It's kinda funky as it pops to the first char and then goes to the last.
Jun 2 '06 #2
> It's kinda funky as it pops to the first char and then goes to the last.

That's a completely tolerable level of funk. But the code doesn't
behave well if you're trying to wrap a line in the middle of existing
text.

Also, I'm looking for a global solution (aren't we all?!) rather than a
control-by-control solution.

Thanks for the input!

PEmigh

Jun 6 '06 #3

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

Similar topics

1
by: Cobra Pilot | last post by:
I can't figure out why these three snippits of code are not equivalent.. Can someone show me the correct way to do this... (Cut and paste sample code follows). @tbl is array of array refs: ...
5
by: angelasg | last post by:
I am working with employee schedules. Each schedule is comprised of segments (shift, lunch, break, training, etc.) that have rankings. Each record has the employee id, the date the shift starts,...
6
by: PerryC | last post by:
I have search googles and there are hundreds of tips about AllowByPassKey... however, none works for me... well, perhaps I am too new to such high level functionality that it just does not make...
388
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's...
43
by: Mehta Shailendrakumar | last post by:
Hello, Can anyone suggest me operator to perform arithmetic shift in C? May it be for a perticular compiler. Thank you in advance. Regards, Shailendra
7
by: Csaba Gabor | last post by:
I'd like to detect the shift key when a button is "clicked" in Firefox/Mozilla. If the button is clicked with the mouse, no problem. However, if the onclick event is keyboard originated, then my...
8
by: skumar434 | last post by:
i need to store the data from a data base in to structure .............the problem is like this ....suppose there is a data base which stores the sequence no and item type etc ...but i need only...
3
by: Amy Smith | last post by:
Hello there, I am having a small problem which been challenging me for few days and need help or advice. I am trying to calculate the day-shift for employees based on the time they started and...
6
by: Paulchen | last post by:
Hello, I have found a perl script and need to "translate" this to PHP. I try to do it step by step and the first part of it is this function (the whole script is found at...
8
by: l1nuxxx | last post by:
I have a file well call file.pl. It's a card sorting program. I need to create a lib fuction with part of the original file that shuffles the deck of cards. After it shuffles the first deck and deals...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.