I try to copy the strContents
into clipboard but I can't.
My code is:
Dim value_currency As Variant
Dim strContents As String
value_currency = value_currency_txt.value
strContents = NumberToString(value_currency) & " (" & Format(value_currency_txt.Value, "Currency") & ")"
DoCmd.RunCommand acCmdCopy
NumberToString
converts number to string.
When I use MsgBox strContents
gives me the desired result but when I try to copy the strContents
it gives me an error 2406 - the command copy isn't available now.
How can I copy the text into clipboard?