Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2005, 06:30 AM
Authorized User
 
Join Date: May 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access and Excel Queries in VB

Hi everybody,

Help needed on the following:
I want to write a query in VB that combines data from a spreadsheet and an Access table.

conn.execute "SELECT * from 'spreadsheet.xls'"
returns an Error: Unrecognised DB format

Can anyone please help?

Regards,
Mihai

 
Old January 24th, 2005, 08:40 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Can you link the spreadsheet to Access as a table? If so, then you can write the query using "local" tables and not have to worry about your connection. Let Access manage it.


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web access from VB Macro in Excel beta_leonis VB How-To 0 August 3rd, 2007 11:30 AM
Processing Excel VB code from Access Axxess Pro VB Databases 0 July 4th, 2007 04:12 AM
How to access checkbox on a Excel sheet with VB janefu VB How-To 1 October 18th, 2006 08:58 PM
Export Access queries to Excel Spymaster Access VBA 2 August 18th, 2006 11:21 AM
Exported Access Parameter Queries to Excel vallasca Access VBA 4 January 19th, 2005 07:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.