I have a button with the following code that opens a specific Word document,  but the Word doc opens behind ACCESS and I need it to be in front.
	
	
	
		
Is there a way to bring Word to the front altering this code?
Thanks
 
		Code:
	
	
	Dim LWordDoc As String
   Dim oApp As Object
   'Path to the word document
   LWordDoc = "c:\Users\jplor\OneDrive\Desktop\RoboData\Templates\Template1.docx"
   If Dir(LWordDoc) = "" Then
      MsgBox "Document not found."
   Else
      'Create an instance of MS Word
      Set oApp = CreateObject(Class:="Word.Application")
      oApp.Visible = True
      'Open the Document
      oApp.Documents.Open FileName:=LWordDoc
   End IfIs there a way to bring Word to the front altering this code?
Thanks
 
	 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		