473,394 Members | 1,946 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,394 software developers and data experts.

Queryng Acees Database

Hello,

In VB6.0 if I have a recorset and I want to move to a
specific location on it (letīs say a Field wich is the
primary key and is autoincrement) I woul type .Findfirst
where IDPAC = 5.
With the tecnology in VB.NET How can I do the same, ou
similar?

What I wont to do is to move to a specific record in a
table or recordset where my primary as a determined value.

Thanks in advance
Nov 20 '05 #1
3 1433
Totally depends on what objects you are using? For instance, in a keyed
DataTable, you could use the .Select method. In a DataView, you could set
the .RowFilter. You can move around a BindingContext as well.

In a DataReader, you only now about one row at a time, so you'd need to walk
it until you found the value you are looking for (DataReaders are great
objects, but not well suited to what it appears you are looking for).
"Luis" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Hello,

In VB6.0 if I have a recorset and I want to move to a
specific location on it (letīs say a Field wich is the
primary key and is autoincrement) I woul type .Findfirst
where IDPAC = 5.
With the tecnology in VB.NET How can I do the same, ou
similar?

What I wont to do is to move to a specific record in a
table or recordset where my primary as a determined value.

Thanks in advance
Nov 20 '05 #2
* "Luis" <an*******@discussions.microsoft.com> scripsit:
In VB6.0 if I have a recorset and I want to move to a
specific location on it (letīs say a Field wich is the
primary key and is autoincrement) I woul type .Findfirst
where IDPAC = 5.
With the tecnology in VB.NET How can I do the same, ou
similar?


Maybe this group is better for the topic of your question:

<news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:

<http://msdn.microsoft.com/newsgroups/default.asp?url=/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microso ft.public.dotnet.framework.adonet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Cor
Hi Luis,

Using a dataset you do more than with a recordset.
Some here typed examples (so there can be little errors)

To get in the 3th row the Item "Luis" in the first table of ds,
(ds=dataset)
ds.tables(0).rows(2)("luis") or if you want
ds.tables(0).rows(2).item("luis")

to find the first row in a table where the key is "luis"
dim dr as new datarow
'"luis" is the key colomn
dr = ds.tables(0).rows.find("luis")

to select a couple of rows
dim drselect() as datarow
drselect = ds.tables(0).select("myselectstatement")

And there are thousands more possiblities

What is confusing is that all documentation is in:
datasets
datatables
datarows
datarowscollections

But look at the introduction to datasets

http://msdn.microsoft.com/library/de...ondatasets.asp

I hope this helps?

Cor





"Luis" <an*******@discussions.microsoft.com> schreef in bericht
news:03****************************@phx.gbl...
Hello,

In VB6.0 if I have a recorset and I want to move to a
specific location on it (letīs say a Field wich is the
primary key and is autoincrement) I woul type .Findfirst
where IDPAC = 5.
With the tecnology in VB.NET How can I do the same, ou
similar?

What I wont to do is to move to a specific record in a
table or recordset where my primary as a determined value.

Thanks in advance
Nov 20 '05 #4

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

Similar topics

5
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I...
0
by: Cherrish Vaidiyan | last post by:
hello, Thanx for the suggestions on my Listener query. Now i am performing a simple work.. STANDBY DATABASE creation. I have followed the instraction from Oracle 9i Release 1 documentation...
0
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : ...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
20
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the...
8
by: Kamlesh | last post by:
Hi, How do I know the physical database path of a database. When I goto the DB2INSTANCE users's directory (/home/db2inst1), I see following folders: /db2inst1/NODE0000/SQL00001...
1
by: pintur | last post by:
The message is: SQL1036C Errore di I/O durante l' accesso al database. SQLSTATE=58030 what is the proble? what for restore tables? thanks
7
by: PC Datasheet | last post by:
Looking for suggestions ---- A database was designed for a national automobile inspection program. In it's simplest form, the database has two tables: TblOwner OwnerID <Year/Make/Model owned...
8
by: Inspector | last post by:
I'm hoping I might be able to pick someone's brain out there. Our company is currently running an inhouse application in which data is being stored in SQL. Included in this data are thousands...
5
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
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...

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.