Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old July 30th, 2004, 07:47 AM
Paula Paula is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 65 Paula User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 32 sec
Reputation Power: 4
DAO Properties in Access

Hi,

I'm using vba in Access and I want to update a table, but I don't know how to set the properties of a recordset to be anything other than read only. I'm using Access 2000. I know with ADO you can use things like adOpenDynamic, adLockOptimistic, but I don't know the DAO equivalents.

Can anyone help me please?

My code currently looks like this:

Set dbDte = CurrentDb
SQLstrDte = "SELECT Email_Date.Email_Date FROM Email_Date WHERE (((Email_Date.Email_Date)<>Date()))"
Set rstDte = dbDte.OpenRecordset(SQLstrDte) '*** need to set properties here****
If rstDte.EOF = False Then
rstDte!Email_Date = Date
rstDte.Update
Else
End If
dbDte.Close

Reply With Quote
  #2  
Old July 30th, 2004, 07:49 AM
Paula Paula is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 65 Paula User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 32 sec
Reputation Power: 4
Oops, just realised I put this in the wrong place! Sorry!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > DAO Properties in Access


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 | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway