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

? Programme language alternative to using Control and Apostrophe keys

I often use the Control and Apostrophe keys to enter the value from the
same field of the previous record in a form. I would prefer to use a
mouse and the double click function. Can anyone help please with the
programming language to type in the Double Click Event procedure
section.

I hope this is clear enough. Many thanks.

Dave k

Jan 18 '07 #1
3 3033
Dave, if you know nothing about programming, you could try creating a macro.
In the macro, use the SendKeys action, and type this in below it:
^'
(That's a Shift+6, followed by a single quote.)

Then set the DblClick property of your text box to the name of this macro.

If you want a field to automatically default to the last value, see:
http://www.mvps.org/access/forms/frm0012.htm

If you want most of the fields to default to the last value, see:
http://allenbrowne.com/ser-24.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"dave k" <ke*******@yahoo.co.ukwrote in message
news:11*********************@11g2000cwr.googlegrou ps.com...
>I often use the Control and Apostrophe keys to enter the value from the
same field of the previous record in a form. I would prefer to use a
mouse and the double click function. Can anyone help please with the
programming language to type in the Double Click Event procedure
section.

I hope this is clear enough. Many thanks.

Dave k
Jan 18 '07 #2
Dear Allen

Many thanks for your suggestion.

I have set up a macro (called Keystrokes) exactly as you suggested. I
have chosen this from the drop down box in the double click section for
the fields I want to update but it doesn't work. Do I need to add an
instruction in the Event Procedure to open the macro?

dave k
Allen Browne wrote:
Dave, if you know nothing about programming, you could try creating a macro.
In the macro, use the SendKeys action, and type this in below it:
^'
(That's a Shift+6, followed by a single quote.)

Then set the DblClick property of your text box to the name of this macro.

If you want a field to automatically default to the last value, see:
http://www.mvps.org/access/forms/frm0012.htm

If you want most of the fields to default to the last value, see:
http://allenbrowne.com/ser-24.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"dave k" <ke*******@yahoo.co.ukwrote in message
news:11*********************@11g2000cwr.googlegrou ps.com...
I often use the Control and Apostrophe keys to enter the value from the
same field of the previous record in a form. I would prefer to use a
mouse and the double click function. Can anyone help please with the
programming language to type in the Double Click Event procedure
section.

I hope this is clear enough. Many thanks.

Dave k
Jan 18 '07 #3
You're right: just tested, and the SendKeys doesn't work.

This example shows how to copy the value from the last record in the form
into the new record by double-clicking on the Surname field:

Private Sub Surname_DblClick(Cancel As Integer)
If Me.NewRecord Then
With Me.RecordsetClone
If .RecordCount 0 Then
.MoveLast
Me.Surname = !Surname
End If
End With
End If
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"dave k" <ke*******@yahoo.co.ukwrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Dear Allen

Many thanks for your suggestion.

I have set up a macro (called Keystrokes) exactly as you suggested. I
have chosen this from the drop down box in the double click section for
the fields I want to update but it doesn't work. Do I need to add an
instruction in the Event Procedure to open the macro?

dave k
Allen Browne wrote:
>Dave, if you know nothing about programming, you could try creating a
macro.
In the macro, use the SendKeys action, and type this in below it:
^'
(That's a Shift+6, followed by a single quote.)

Then set the DblClick property of your text box to the name of this
macro.

If you want a field to automatically default to the last value, see:
http://www.mvps.org/access/forms/frm0012.htm

If you want most of the fields to default to the last value, see:
http://allenbrowne.com/ser-24.html

"dave k" <ke*******@yahoo.co.ukwrote in message
news:11*********************@11g2000cwr.googlegro ups.com...
>I often use the Control and Apostrophe keys to enter the value from the
same field of the previous record in a form. I would prefer to use a
mouse and the double click function. Can anyone help please with the
programming language to type in the Double Click Event procedure
section.

I hope this is clear enough. Many thanks.

Dave k
Jan 19 '07 #4

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

Similar topics

4
by: Meyer1228 | last post by:
You all helped me with function keys last week. Thanks so much; your advice was right on. My question now - does anyone have a function that I can use to test my sql statements for the...
0
by: cm012b5105 | last post by:
Hello i want to put an interactive text programme in to a graphical box this is a small section of my text programme s = raw_input ("Hello whats your name? ") if s=='melvyn': print "your my...
0
by: melledge | last post by:
Full Programme for XTech 2005 Announced Premier European XML Industry Event Expands Focus to "XML, the Web and Beyond"; Co-hosted by the Mozilla Foundation,W3C, and OASIS, Presenters Include...
1
by: The Doctor | last post by:
Hello, a customer of mine was thinking of using newsletter pro, but due to expense and non-availablity for BSD/OS I have told the customer not to go with that programme. What alternative are...
11
by: Trevor | last post by:
Hi, I currently have the following code in a subform. If Not rstPDAddresses.EOF And Not rstPDAddresses.BOF Then With rstPDAddresses txtautoAddressID.ControlSource = "='" & Nz(!autoAddressID,...
2
by: micmic | last post by:
Dear all experts, As i found in the internet, there is a C# programme that can make use of the resource manager to choose different lanugage string for particular expression using resource...
10
by: Immortalist | last post by:
Various aquisition devices that guide learning along particular pathways towards human biases. And as E.O. Wilson might say mental development appears to be genetically constrained. (1) Language...
18
by: arnuld | last post by:
i compiled the "hello world" programme from K&R2: #include<stdio.h> int main() { printf("hello world\n"); }
8
by: NMarks | last post by:
Hello all, I have created a database for my work that stores information for keys/locks, doors and employees. Specifically the database contains all the information of our lock system, which...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?
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.