I have a database that runs an append query to a table then opens an Excel file that is linked to my table. like so.
	
	
	
		
I have ticked the box that requests that the Excel file refreshes on open but this does not happen ! I have to remember to manually press the refresh button on the ribbon.
I'm guessing that thisis due to the database being open?
Could I force my Excelfile to fresh the data on open?
 
		Code:
	
	
	Function OpenExcelFromAccess()
    Dim MyXL As Object
    
    Set MyXL = CreateObject("Excel.Application")
    With MyXL
        .Application.Visible = True
        .Workbooks.Open "C:\Folder One\Folder Two\Folder Three\My_Excel_File.xlsx"
    End With
End FunctionI have ticked the box that requests that the Excel file refreshes on open but this does not happen ! I have to remember to manually press the refresh button on the ribbon.
I'm guessing that thisis due to the database being open?
Could I force my Excelfile to fresh the data on open?
 
	 
 
		 
 
		