LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Writing from Excel to Access DB

I want to be able read rows from a spreadsheet and insert into a MS Access
database. I'm having a problem in just declaring object variables as
follows:

Dim db As DAO.Database
Dim rs As DAO.Recordset

I get a compile error on both of these declaration statements. The error
message is "User-defined type not defined". Do I have pre-define the
"Database" and "Recordset" data types?

--
Bob Kaku
Email:
http://www.majesty.org


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing Macro in Excel 07 Tony Excel Worksheet Functions 3 July 4th 09 02:11 AM
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Writing a rule in excel... I think BVZ Excel Worksheet Functions 5 October 27th 08 06:40 PM
need help writing a formula in excel Marco New Users to Excel 1 March 26th 08 08:34 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM


All times are GMT +1. The time now is 11:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"