Wrox Programmer Forums
|
BOOK: Excel 2000/2002 VBA Programmer's Reference
This is the forum to discuss the Wrox book Excel 2000 VBA: Programmers Reference by John Green, Stephen Bullen, Felipe Martins, Brian Johnson; ISBN: 9780764544019
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Excel 2000/2002 VBA Programmer's Reference 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 July 19th, 2004, 06:51 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using an Excel Cell reference with Access ADO

I'm still a bit of a novice when it comes to VBA and I am completely stuck
and puzzled within Chapter 20- Data Access with ADO

As part of the tutorial on 'Inserting, updating, and deleting records with
Plain Text SQL in Microsoft Access' it provides the code for inserting a
new record into access.

See below
objCommand.CommandText = "INSERT INTO Shippers(CompanyName, Phone) " & _
"VALUES('Air Carriers', '(205) 555-1212');"

I am stuck because I can not figure out how to use an excel cell reference
instead of using a set text value, for instance instead of inserting the
words 'Air Carrier' as the Company Name I want to be able to specify an
excel range such as range("A1") which will contain a name.
 
Old September 3rd, 2004, 12:37 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello I'm Csabi.


Kulus Csaba





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a variable to reference a cell MikeCt203 Excel VBA 2 March 24th, 2008 04:02 PM
Excel to Access using ADO JezLisle Excel VBA 2 July 22nd, 2007 05:55 PM
Export Access Data to a Specific Cell in Excel. VBNoob Access VBA 1 December 14th, 2005 08:25 PM
Reference a Cell in a Webtable. Ahrenl Excel VBA 2 May 25th, 2005 11:25 AM
ado excel/access loane Excel VBA 5 August 17th, 2004 10:18 AM





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