AutoKey Macro for CTRL + '

D

desireemm

Hello I need to create an Autokey macro but not sure how to do it. its
suppose to Insert the data from the same field in the previous record CTRL+'
can anyone help please
 
J

June7

Try something like:
DoCmd.RunCommand acCmdRecordsGoToPrevious
varData = fieldname
DoCmd.RunCommand acCmdRecordsGoToNext
fieldname = varDat
 
S

Steve Schapel

Desiree,

I am struggling to understand. You are apparently already aware of Access's
built-in Ctrl+' keyboard shortcut for this purpose. And now you want to use
AutoKeys to create another keyboard shortcut to do the same thing? Why?
What's wrong with using Ctrl+' and what advantage would it be to use
something else instead? You still tie up the same number of fingers!
 
D

desireemm

The reason is because I am using an ADP and it does not support CTRL +
Apostrophe only an MDB does. but I have SQL Server 2005 as the engine
 
D

desireemm

I was told to use this but I'm not sure how do I put this in the afterupdate
of the form properties . and is the control name the name of the subform??
Private Sub YourControlName_AfterUpdate()
Me.YourControlName.DefaultValue = """" & Me.YourControlName.Value & """"
End Sub
 
D

desireemm

I wanted to do this in the subform is this correct I put it in the
properties Afterupdate()
Private Sub Tanf_tblsubform_AfterUpdate()
Me.Tanf_tblsubform.DefaultValue = """" & Me.Tanf_tblsubform.Value & """"
End Sub
 
D

desireemm

Private Sub Tanf_tblsubform_AfterUpdate()
Me.Tanf_tblsubform.DefaultValue = """" & Me.Tanf_tblsubform.Value & """"
End Sub

ok here is what I got, now do I put the field names in there because they
would be inputing hours into the subform. do I put the field names where the
quotes are. [Catagory for hours] [Services Covered], [Earned hours] [contact
date] [purpose of contact]??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top