473,947 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recordset Type in ADP

Does changing the Recordset Type property for a form in an Access ADP
have any effect on possible record locking?

I have a continuous form that is bound to a table but I don't want it
editable, so if I make it Snapshot instead of updateable Snapshot will
this in any way improve performance and reduce/remove record locking?

Thanks,
lq

Nov 17 '05 #1
9 4736
On 16 Nov 2005 17:21:13 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:

Yes.
You'd always want to choose the simplest recordset possible for your
form. Same when opening a recordset in code. A sloppy recordset breeds
bugs.

-Tom.

Does changing the Recordset Type property for a form in an Access ADP
have any effect on possible record locking?

I have a continuous form that is bound to a table but I don't want it
editable, so if I make it Snapshot instead of updateable Snapshot will
this in any way improve performance and reduce/remove record locking?

Thanks,
lq


Nov 17 '05 #2
Tom,
Thanks for the info.

Generally, I open recordsets like this:

Dim RS As ADODB.Recordset , mySP As String, myID as Long
myID = Me.SomeUniqueID
mySP = "dbo.sprocN ame"
Set RS = CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID)
If Not RS.BOF And Not RS.EOF Then
'Extract some RS("ColumnName" ) value or do something else really
valuable to mankind
End If

Is there a way to specify a non-dynamic recordset doing it this way?

lq

Nov 17 '05 #3
On 16 Nov 2005 21:47:12 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:
Tom,
Thanks for the info.

Generally, I open recordsets like this:

Dim RS As ADODB.Recordset , mySP As String, myID as Long
myID = Me.SomeUniqueID
mySP = "dbo.sprocN ame"
Set RS = CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID)
If Not RS.BOF And Not RS.EOF Then
'Extract some RS("ColumnName" ) value or do something else really
valuable to mankind
End If

Is there a way to specify a non-dynamic recordset doing it this way?

lq


My understanding was that doing it that way would always give you a snapshot.
Nov 17 '05 #4
Is there a better way I should be doing this?

Nov 17 '05 #5
On 16 Nov 2005 21:57:38 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:
Is there a better way I should be doing this?


That depends - when you want a snapshot, I think that's a perfectly good way
to do it. If you need to specify the recordset behavior, create a new
recordset object, initialize its properties the way you want them, then use
the Open method of the recordset to open it.
Nov 17 '05 #6
On 16 Nov 2005 21:57:38 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:

When using ADO I always use a Command object, set my parameters and
use rs.Open to get the recordset. The Open method allows you to
specify in detail what kind of recordset you need. Of course I have
this code nicely encapsulated in a class, so I don't have to write the
repetitive parts over and over again.

-Tom.

Is there a better way I should be doing this?


Nov 17 '05 #7
But if I only want a snapshot, will doing it this way ... Set RS =
CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID)
... accomplish that without issue?

Nov 17 '05 #8
But if I only want a snapshot, will doing it this way ... Set RS =
CurrentProject. Connection.Exec ute("EXEC " & mySP & " " & myID)
... accomplish that without issue?

Nov 17 '05 #9
On 17 Nov 2005 06:38:04 -0800, "Lauren Quantrell"
<la************ *@hotmail.com> wrote:

Technically there is no snapshot in ADO. Perhaps you could inspect
rs.CursorType.

-Tom.

But if I only want a snapshot, will doing it this way ... Set RS =
CurrentProject .Connection.Exe cute("EXEC " & mySP & " " & myID)
... accomplish that without issue?


Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3103
by: Tom | last post by:
I want to open a recordset object on an .asp page. When I open the recordset I would like to use a stored procedure that expects a parameter to be passed for the stored procedure. I will then use the recordset to loop thru the recordset, update values from the recordset and then update the database by passing parmeters to another stored procedure. I would like to use the recordset object but can it be used to pass a parameter to a stored...
0
2893
by: elcc1958 | last post by:
I need to support a VB6 application that will be receiving disconnected ADODB.Recordset from out DotNet solution. Our dotnet solution deals with System.Data.DataTable. I need to populate a disconnected ADODB.Recordset from System.Data.DataTable data. Below is the source code I am implementing to test the process. I do not get any error, that I can see. The problem I have is that at the end, the recordset seems to be empty. Any...
9
4376
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my predecessor, I hasten to add) so that each day it creates a copy of the record for each company, changes the date to today's date, and prompts the user for any changes of ratings on that day. The resulting data table grows by approx 600 records per...
3
35517
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 sort them in the actual database and not just Order them with SQL. I have included the code I wrote below. Please bear in mind that I am very new to Access and SQL. I used the Helpfile of Access for this code but i can't make it work for me....
0
10292
by: Thaddeus | last post by:
//Author: //Thaddeus Jacobs, MCP //Kinematic Automation, Inc. //mailto:tjacobs@kinematic.com // //Description: //convert ADO .NET dataset to ADO 2.5 2.6 2.7 recordset and v/v //DataSet to recordset conversion. //Get RecordSet from Dataset //ds2rs DataSet2RecordSet
7
2755
by: Mac | last post by:
Hi all I have a asp.net application which calls a web service via a wdsl file which retrieves an XML String. The XML String is from a adodb recordset saved as via a stream. Dim oRS as New ADODB.Recordset Dim oStream as New ADODB.Stream
2
3063
by: barret bonden | last post by:
(closest newsgroup I could find) Error Type: ADODB.Recordset (0x800A0CB3) Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. /asp_data3_add.asp, line 30 <% 'Dimension variables Dim adoCon 'Holds the Database Connection Object
11
49307
by: jason.teen | last post by:
Hi, I dont seem to be able to get this Filter right on my RecordSet for some reason. I have this code: Dim rs As Recordset Set rs = CurrentDb().OpenRecordset("SELECT DISTINCT Product,
0
9027
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the Recordset? Does the Recordset support Bookmarks? Can we use the Find and/or Seek Methods with this Recordset? Does the Recordset support the use of Indexes? Will the Absoluteposition property be able to be used on this Recordset? etc....
2
5529
by: wallconor | last post by:
Hi, I am having a problem using Dreamweaver CS3 standard recordset paging behavior. It doesn’t seem to work when I pass parameter values from a FORM on my search page, to the recordset on my results page. - Recordset Paging works if no parameters are used in the recordset sql code (ie. simple sql code): SELECT * FROM db_name WHERE (db_field1 LIKE ‘%text1%’ OR db_field2 LIKE ‘%text2%’)
0
9982
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11576
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11160
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10692
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9888
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8255
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4946
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3543
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.