B
bravofoxtrotuk
My database has several forms which have buttons for copying items to the
clipboard, using something like this:
me.txtEmail.SetFocus
' copy email details to clipboard
DoCmd.RunCommand acCmdCopy
- which worked fine for some years until this morning when a Micro$oft
update took place, and it stopped working.
I've changed the code as below:
Me.EMail.SetFocus
' now select the text
Me.EMail.SelStart = 0
Me.EMail.SelLength = Len(Me.EMail)
' copy email details to clipboard
DoCmd.RunCommand acCmdCopy
- and it now works again!
A co-incidence perhaps, and a mystery to me, but may help others.
Bob
clipboard, using something like this:
me.txtEmail.SetFocus
' copy email details to clipboard
DoCmd.RunCommand acCmdCopy
- which worked fine for some years until this morning when a Micro$oft
update took place, and it stopped working.
I've changed the code as below:
Me.EMail.SetFocus
' now select the text
Me.EMail.SelStart = 0
Me.EMail.SelLength = Len(Me.EMail)
' copy email details to clipboard
DoCmd.RunCommand acCmdCopy
- and it now works again!
A co-incidence perhaps, and a mystery to me, but may help others.
Bob