Copy text with button

snekkis

New Member
Joined
Feb 11, 2013
Messages
16
I come for Filemaker and I'm switching over to Access. I want to have a button copy text from a field in a current record. In the Macro design, there is no action for this purpose. I guess it is here you must know VBA code, but from Filemaker I'm used to a lot more script actions than here. I don't have a clue how to do or learn this.

I have one table, one field, and want to have a button copy the text from that one field from that current record to the clipboard.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Did some more searches copy-pasted some VBA code I don't understand, and it was solved. Sorry for posting.
VBA Code:
Private Sub Command5_Click()
 Me!Innhold.SetFocus
   DoCmd.RunCommand acCmdCopy
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,680
Members
449,116
Latest member
HypnoFant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top