Forum Discussion

Asad_khan1971's avatar
Asad_khan1971
Copper Contributor
Nov 25, 2019

Activating or shifting focus from Access to Word

Activating or shifting focus from Access to Word Dear Sir I have an Access DB in which I have stored Addresses of clients, I have concatenated all address fields in a Memo field. I have placed a b...
  • George_Hepworth's avatar
    George_Hepworth
    Nov 27, 2019

    Asad_khan1971 

     

    The problem is that "shifting focus" from one running application to another, in this case, from Access to Word, is not a reliable method, so a different approach is likely to be safer and more stable. That said, your specific circumstances do restrict your options as well.

     

    What you'll need to do is obtain the Windows Handle for the open Word document (there should be a Windows API to do that) and use that information to select and activate it. Not something I've done, but I suspect it is possible.

     

     

Resources