Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Excelsheet

Status
Not open for further replies.

samusa

Programmer
Jan 1, 2001
107
US
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.

Sam
 

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
 
Try this Jet Query

Code:
UPDATE [WorkSheetname$] IN '' [Excel 5.0;HDR=yes;IMEX=0;DATABASE=\\filepath\filename.xls;TABLE=WorkSheetname$] SET [WorkSheetname$].Fieldname1 = "Value"
WHERE ((([WorkSheetname$].Fieldname2)="xxxxxx"));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top