Copy Field from Prior Record

C

Connell Giacomini

Our data-entry form is programmed to duplicate data from six corresponding
fields in the prior record.

The code we use (On Enter event) is:

Private Sub (Data Entry Field)_Enter()
SendKeys ("^'")
End Sub

This works for only four of the six fields, forcing the operator to use
Ctrl+' to copy the data into two of them.

The form was created in Access 2007, on a Windows Vista PC, and works
perfectly for all fields.

The form was imported into Access 2007 on a Windows XP machine and only work
for 4 of 6 fields.

Is there a better way (instead of SendKeys) for doing this?

Connell Giacomini
 

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