Hi,
Is there a way out to link MS Access query results to excelsheet so that whenever query is executed it will automatically update spreadsheet. Appreciate it.
If the query opens with VBA then before opening use DoCmd.Transfersheet method to export. If the query opens from the database window, you 'll have to get the result into excel from access and not the other way
UPDATE [WorkSheetname$] IN '' [Excel 5.0;HDR=yes;IMEX=0;DATABASE=\\filepath\filename.xls;TABLE=WorkSheetname$] SET [WorkSheetname$].Fieldname1 = "Value"
WHERE ((([WorkSheetname$].Fieldname2)="xxxxxx"));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.