Hi!
First post...
I have a MS Access 2003 form for classifying various drugs that patients take. Several drug names are written in the same field and users can currently look up a description of any one drug by highlighting the word, copying it to the clipboard and then clicking a button which opens a subform to process the information using:
This works weel, but I'd like the user to skip the 'copy to clipboard' stage, in that they would simply double-click the word to highlight and then click the search button. However, I cant find any code on whether this is possible.
Any ideas?
Thanks!
First post...
I have a MS Access 2003 form for classifying various drugs that patients take. Several drug names are written in the same field and users can currently look up a description of any one drug by highlighting the word, copying it to the clipboard and then clicking a button which opens a subform to process the information using:
Code:
Dim MyDataObj As New DataObject
MyDataObj.GetFromClipboard
GetOffClipboard = MyDataObj.GetText()
Dim MyVar As Variant
MyVar = MyDataObj.GetText
Me.Drug.SetFocus
DoCmd.FindRecord MyVar
This works weel, but I'd like the user to skip the 'copy to clipboard' stage, in that they would simply double-click the word to highlight and then click the search button. However, I cant find any code on whether this is possible.
Any ideas?
Thanks!