473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Access - ADODB.RECORDSET

157 100+
Hello!

Question:

I always modify and add posts i tables using this code:

Dim Rst as New Adodb.Recordset

RST.open "SELECT * sometable",CurrentProject.Connection, adOpenDynamic, adLockOptimistic



But you can also Dim RST without the "New" part and at RST.open "SELECT * sometable", you can choose some different endings of the sentence.

What does "CurrentProject.Connection, adOpenDynamic, adLockOptimistic" and why was i learned to use this frase?
And what does Dim RST as NEW Adodb.recordset mean?

the reason for asking is that it is maybe a better way to do things, maybe even a way that uses less CPU power. I have noticed that when i have rather large table updates using this code access sometimes freezes up for a short time.

- Eirik
Nov 15 '07 #1
1 2909
ADezii
8,834 Expert 8TB
Hello!

Question:

I always modify and add posts i tables using this code:

Dim Rst as New Adodb.Recordset

RST.open "SELECT * sometable",CurrentProject.Connection, adOpenDynamic, adLockOptimistic



But you can also Dim RST without the "New" part and at RST.open "SELECT * sometable", you can choose some different endings of the sentence.

What does "CurrentProject.Connection, adOpenDynamic, adLockOptimistic" and why was i learned to use this frase?
And what does Dim RST as NEW Adodb.recordset mean?

the reason for asking is that it is maybe a better way to do things, maybe even a way that uses less CPU power. I have noticed that when i have rather large table updates using this code access sometimes freezes up for a short time.

- Eirik
  1. What you are describing are all Arguments to the Open Method of an ADO Recordset Object.
    1. CurrentProject.Connection ==> a valid Connection Object Variable.
    2. adOpenDynamic ==> the Type of Cursor the Provider should use when opening the ADO Recordset.
    3. adLockOptimistic ==> the specific Type of Locking employed on the Recordset.
  2. Dim RST as NEW Adodb.Recordset => you are creating a New Instance of an ADO Recordset, and storing it in the Object Variable RST.
Nov 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Josh Strickland | last post by:
I am attempting to create an Access database which uses forms to enter data. The issue I am having is returning the query results from the Stored Procedure back in to the Access Form. ...
3
by: alex_peri | last post by:
Hello All, I am having problems with sorting a recordset by fields in Access. I have a table with three columns called ID, SNo and Time and would like to sort the records by Time. I would like to...
1
by: Ray Holtz | last post by:
I have a database in Access 2003 (Access2000 file format). There are two tables that are being used: Employees and Items. It is linked by the Employee field so that one employee can have many...
0
by: totierne | last post by:
comp.databases.ms-access, I want to know how to use Oracle views with session variables in Access. The parameterised views in access, are migrated to views with per session variables. The...
5
by: josephrthomas | last post by:
hi.. i am using ASP.NET with VB.NET to connect to a MS Access database... can someone pls tell me how do i make the sql statement to insert a new record into the existing table pls?? also...
0
by: jayohare | last post by:
Hello, I have code within my DB application to process credit cards through authorize.net. Ive been using the same code for several years without a problem. I have an order entry computer and...
6
by: venmore | last post by:
Hi Can someone please point in the right direction. I have an XML file that gets updated every 4 hours on a web server. I can check the XML modification time in ASP and compare to the databse....
0
by: DrewYK | last post by:
I have the project that may never end in front of me. I am creating a routine that will take SpreadSheets from Excel and bring them into Access. I am not using any "DoCmd"s because the goal...
2
by: curran.george | last post by:
'add one textbox to form1 with Control Source property = ID 'copy/paste the form_load code below: 'Then open the form and then attempt to sort the datasheet 'crashes 2003, error 3450 Access 2007 -...
2
EYE4U
by: EYE4U | last post by:
Hi all, This is how you can connect to an Access Database using ADODB.. First add a reference to Microsoft ActiveX Data Objects 2.0 Library Now to lets Declare some variables : Private Con...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.