Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 17th, 2004, 09:28 PM
dagraves dagraves is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 2 dagraves User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
openrecordset method for queries

I'm very much a novice with VBA, but used it previously
to automate some work in Access 2000. At the time,
I used the following type of statement to query data in my
database and return it as a recordset that I then used in
a module:

Dim Precip as recordset
Set Precip = dbs.Openrecordset("SELECT * FROM table1;")

I'm now trying to write a new module and using an updated
version of Access (2002) and the same statement returns
the following error "run time error 13 - type mismatch"

I'm wondering if something changed in this respect after Access
was updated, and if so, how to write a statement with
Access 2002?

Thanks very much,
David

Reply With Quote
  #2  
Old December 17th, 2004, 10:33 PM
dagraves dagraves is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 2 dagraves User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Figured it out

Please disregard this question...

I got this to work once I added the same reference libraries
to the module in Access 2002 that were used with my
module in Access 2000....

(Microsoft DAO 3.6 Object Library, OLE Automation,
Microsoft Visual Basic for Applications Extensibility 5.3)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > openrecordset method for queries


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT