Copying a created address block/joining fields

C

CPAZ

I'm relatively new to Access, but have successfully created a contact database using a table and then a form for data entry. Although I was able to create a separate address block from existing fields, I'd like to be able to copy information from that block to paste into other applications. Pllllllllllllllllllleeeeease help!
 
W

Wayne Morgan

You could use code similar to this in a button's Click event.

Me.Text0.SelStart = 0
Me.Text0.SelLength = Len(Me.Text0.Text)
RunCommand acCmdCopy
 
W

Wayne Morgan

Sorry, I had to run off for a few minutes, so I didn't get to finish the
previous post. For the previous example to work, the control has to have the
focus. You can also do it all without the focus by using API calls to write
to the clipboard. You can find an example of that here:

http://www.mvps.org/access/api/api0049.htm
 

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