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

HOW I CAN USE RECORDSET AND SEEK IN ACCESS

I DON'T KNOW USE RECORDSET, MATCH, FIND AND SEEK IN ACCESS ONLY IN EXCEL

Jul 28 '06 #1
5 3191

Jonnh wrote:
I DON'T KNOW USE RECORDSET, MATCH, FIND AND SEEK IN ACCESS ONLY IN EXCEL
So? Read the help file. Do you have a specific example of code that
is not working the way you expect it to? Did you look through the NG
posts to find a problem similar to yours? What version of Access are
you using?

Jul 28 '06 #2

I HAVE:
1- TABLE: NESTLE
2- FIELD: idcodigo / nombreprod
3- TEXTBOX: txtSumando_1 / txtSumando_2

Dim dbdatabase As Database
Dim rstPrecioempaque As DAO.Recordset

Set dbdatabase = CurrentDb
Set rstPrecioempaque = dbdatabase.OpenRecordset("NESTLE")

With rstPrecioempaque
.FindFirst txtSumando_1.Value 'ERR NUMBER 3251 I
UNDERSTAND!!!!
End With

If Not rstPrecioempaque.NoMatch Then
rstPrecioempaque.Edit
rstPrecioempaque("nombreprod") = txtSumando_2.Value
rstPrecioempaque.Update
End If
HELP PLEASE

Jul 28 '06 #3
On 28 Jul 2006 15:48:19 -0700, "Jonnh" <js*********@gmail.comwrote:

When calling FindFirst, you have to specify in which field the value
should be found:
.FindFirst "idcodigo=" & txtSumando_1.Value

-Tom.

>
I HAVE:
1- TABLE: NESTLE
2- FIELD: idcodigo / nombreprod
3- TEXTBOX: txtSumando_1 / txtSumando_2

Dim dbdatabase As Database
Dim rstPrecioempaque As DAO.Recordset

Set dbdatabase = CurrentDb
Set rstPrecioempaque = dbdatabase.OpenRecordset("NESTLE")

With rstPrecioempaque
.FindFirst txtSumando_1.Value 'ERR NUMBER 3251 I
UNDERSTAND!!!!
End With

If Not rstPrecioempaque.NoMatch Then
rstPrecioempaque.Edit
rstPrecioempaque("nombreprod") = txtSumando_2.Value
rstPrecioempaque.Update
End If
HELP PLEASE
Jul 29 '06 #4
"Jonnh" <js*********@gmail.comwrote in
news:11**********************@s13g2000cwa.googlegr oups.com:
I HAVE:
1- TABLE: NESTLE
2- FIELD: idcodigo / nombreprod
3- TEXTBOX: txtSumando_1 / txtSumando_2

Dim dbdatabase As Database
Dim rstPrecioempaque As DAO.Recordset

Set dbdatabase = CurrentDb
Set rstPrecioempaque = dbdatabase.OpenRecordset("NESTLE")

With rstPrecioempaque
.FindFirst txtSumando_1.Value 'ERR NUMBER 3251 I
UNDERSTAND!!!!
End With

If Not rstPrecioempaque.NoMatch Then
rstPrecioempaque.Edit
rstPrecioempaque("nombreprod") = txtSumando_2.Value
rstPrecioempaque.Update
End If
HELP PLEASE
Why not use a WHERE clause instead, to limit the recoordset to the
row or rows that match the requested value?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 29 '06 #5

Tom van Stiphout ha escrito:
On 28 Jul 2006 15:48:19 -0700, "Jonnh" <js*********@gmail.comwrote:

When calling FindFirst, you have to specify in which field the value
should be found:
.FindFirst "idcodigo=" & txtSumando_1.Value

-Tom.


I HAVE:
1- TABLE: NESTLE
2- FIELD: idcodigo / nombreprod
3- TEXTBOX: txtSumando_1 / txtSumando_2

Dim dbdatabase As Database
Dim rstPrecioempaque As DAO.Recordset

Set dbdatabase = CurrentDb
Set rstPrecioempaque = dbdatabase.OpenRecordset("NESTLE")

With rstPrecioempaque
.FindFirst txtSumando_1.Value 'ERR NUMBER 3251 I
UNDERSTAND!!!!
End With

If Not rstPrecioempaque.NoMatch Then
rstPrecioempaque.Edit
rstPrecioempaque("nombreprod") = txtSumando_2.Value
rstPrecioempaque.Update
End If
HELP PLEASE

Thanks you!!!!

Aug 3 '06 #6

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

Similar topics

4
by: MNC | last post by:
I'm using Access2002, and can't seem to get an updateable recordset going :-( What am I doing wrong, here's the code. The form's controls are not locked, the recordset type is Dynaset (changing...
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...
3
by: RBohannon | last post by:
I've developed a database in Access 2000 on Windows 2000. I have been asked to put the database on a machine running Windows XP. I copied the database onto the XP machine with some data already...
2
by: ThurstonHowl | last post by:
Hello, my task is the following: Input are tables with fields containing strings where the strings are actually delimited lists. For example, one field could contain 'AB|CD|EF|GH' I've...
0
by: Art Chadbourne | last post by:
Here is the scenario. Access XP using VBA. I have a text field. The text that I have in the field is m-1234. I am running a >= seek. My first seek is m and it returns m-1234. My second seek...
1
by: Art Chadbourne | last post by:
Here is the scenario. Access XP using VBA. I have a text field. The text that I have in the field is m-1234. I am running a >= seek. My first seek is m and it returns m-1234. My second seek...
3
by: Jonnh | last post by:
help with use the methods recordset and seek in access because en excel with function database, i know but en access i need seek to table or form, thanks
0
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...
0
by: Mark Salsbery [MVP] | last post by:
"DR" <softwareengineer98037@yahoo.comwrote in message news:Op0NyzR8IHA.1200@TK2MSFTNGP04.phx.gbl... If the filestream is opened for write access then it still keeps its write access. If you...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.