473,406 Members | 2,705 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,406 software developers and data experts.

Recordset info

Thanks in advance!

In an Access 2k mdb front end with a sql server backend...
I am trying to learn to use recordsets, so where can i find information
and examples of recordset properties (Edit, AddNew, MoveNext, Filter,
etc.)? Questions I have would include , but far from limited to, do i
always have to use rst.Update and rst.Close when finished working the
the recordset?

Currently I am trying to accomplish the following:

I have a table that has an alphanumeric field where only a portion of
the field needs to be changed (From <oldvalue>_R1 to <newvalue>_R1).
The table lists device names for a site, so I would need to filter the
table to a result set that may include several distinct device names
(one record for each device). It is worthy to note that in some cases
there may not be a record. I then need to edit those names as indicated
above.

Nov 13 '05 #1
3 1249
5p****@centurytel.net wrote:
Thanks in advance!

In an Access 2k mdb front end with a sql server backend...
I am trying to learn to use recordsets, so where can i find information
and examples of recordset properties (Edit, AddNew, MoveNext, Filter,
etc.)? Questions I have would include , but far from limited to, do i
always have to use rst.Update and rst.Close when finished working the
the recordset?

Currently I am trying to accomplish the following:

I have a table that has an alphanumeric field where only a portion of
the field needs to be changed (From <oldvalue>_R1 to <newvalue>_R1).
The table lists device names for a site, so I would need to filter the
table to a result set that may include several distinct device names
(one record for each device). It is worthy to note that in some cases
there may not be a record. I then need to edit those names as indicated
above.


Read the Access VBA Help articles "Recordset Object" and look at the
Methods articles.

Having 2, or more, data items in one cell is bad database design (it
violates the First Normal Form [1NF]). You should break out the
separate data items into 2 columns: <value> in one column, 'R1' (etc.)
in another.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Nov 13 '05 #2
Using the Answer Wizard in VB Help (no, not Access Help), i do not have
a topic "Recordset Object"; when i enter something like "MoveNext" or
"Edit", the topics are listed, but no information (The page is "Visual
Basic 'Welcome to Visual Basic documentation'"); so maybe I don't have
the entire help file or something. Under Visual Basic Language
Reference/Objects, there is no 'recordset'. I know i do not have a
developer's edition. I'm sure I have the reference, since i use a
recordset object in one funtion to write data to an excel spreadsheet.
So I would still like to know where to find some info and examples.
(Or, is there a secret to finding "recordset object method", etc. at
the MS KB?)

When i started this thing, i had no knowledge of databases of any kind.
But now that you point it out, I see your point about seperate data
items. I did not view them as seperate data items--chalk to
inexperience of a self-teaching part-timer.

Nov 13 '05 #3
5p****@centurytel.net wrote:
Using the Answer Wizard in VB Help (no, not Access Help), i do not have
a topic "Recordset Object"; when i enter something like "MoveNext" or
"Edit", the topics are listed, but no information (The page is "Visual
Basic 'Welcome to Visual Basic documentation'"); so maybe I don't have
the entire help file or something. Under Visual Basic Language
Reference/Objects, there is no 'recordset'. I know i do not have a
developer's edition. I'm sure I have the reference, since i use a
recordset object in one funtion to write data to an excel spreadsheet.
So I would still like to know where to find some info and examples.
(Or, is there a secret to finding "recordset object method", etc. at
the MS KB?)

When i started this thing, i had no knowledge of databases of any kind.
But now that you point it out, I see your point about seperate data
items. I did not view them as seperate data items--chalk to
inexperience of a self-teaching part-timer.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You can find info on a VBA-related command, object, etc. by opening the
Debug window (ctrl-G) and typing in the thing you want info on. Place
the cursor over what you just typed & hit the F1 key. In your case,
type Recordset in the Debug window.

If you do the above for "Recordset," you will be prompted for the
library in which the object resides. If you are using DAO double-click
on the Access library line. If you are using ADO double-click on the
ADODB library line. The Help article will appear (if it is installed).

A pretty good book on database design is _Database Design for Mere
Mortals_ (2nd edition) by Hernandez. He uses some Access dbs to explain
design ideas.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQh97/oechKqOuFEgEQItCQCg82tZadkpH68PomfRj4y3+kKL14MAn1k R
HoKiHQHr753101Kwg66M8RuY
=jzos
-----END PGP SIGNATURE-----
Nov 13 '05 #4

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

Similar topics

2
by: Erik | last post by:
I'm using ASP 3.0 and SQL Server 2000. I keep getting this error: a.. Error Type: ADODB.Recordset (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict...
23
by: Rob Meade | last post by:
Lo all, Ok - this is what I was aiming to do, and then I thought - naahhh, that cant be right! query database results to recordset results to array using GetRows update values in one column...
8
by: dmiller23462 | last post by:
My brain is nuked....Can anybody tell me right off the bat what is wrong with this code? Along with any glaring errors, please let me know the syntax to display a message (Response.Write would be...
8
by: Tom | last post by:
Hi I have an aspx page which has javascript to configure xmldata. I added breakpoint to the button method. When I click submit button, it did not go to those breakpoint and show the following...
36
by: kjvt | last post by:
Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a...
5
by: Hexman | last post by:
I've come up with an error which the solution eludes me. I get the error: >An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in HRTest.exe > >Additional...
0
by: Vash10 | last post by:
I have two asp files. Login.asp and changePass.asp. what i want to do is to make the user change his password after his first login. so what happens is login.asp is the first to be used then it is...
10
by: nspader | last post by:
I want to start out saying I am a novice code writer. I am trying to send a report via email based on each supplier. The code below is what I am using. I need to base recordset on Form, report...
3
by: Gord | last post by:
Me again, I'm new to Access and am self teaching from a couple of books, so bear with me. (I've got a little experience with Visual Basic) As I understand so far, if I want to perform a bunch...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
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...

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.