msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

to find the value of a record using recordcount

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
rajaaryan4



Joined: 04 Oct 2007
Posts: 1

PostPosted: Mon Apr 09, 2007 1:34 am    Post subject: to find the value of a record using recordcount Reply with quote

i m using ms access and vb using ADO. i m trying to transfer few recrords
from one database to another. i m able to transfer the complete record to
another database(blank). but i cant do it if i have to transfer only few
records which is not present in the other databse(MSAccess).what i m doing
is that i m taking the recordcount of both the database . comparing it
then .

if recordcount of one database is 30 and of second is 13 .
then there is 17 data sort in other database. so i m taking the recordcount
of second database and usin that recordcount going to the record of which is
at recordcount 14 . but when i m doing it it is showing the dat which is at
recordcount 16. rs.move(13+1).
then i m moving the data to the second record.
do until rs.eof = true

with rs1
.addnew

for i = 0 to (fldcount-1)

rs1.fields(i).value = rs.fields(i).value

.update
.updateBatch
next i
but its showing the record cannot be updated as it requires a current
record . can any one please help me with that .

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
recordcount per date ? HOw? dear all its me again.... how are you today ???? i have some problems again i have some records per date and i want to count it per date here is the data date | pc 01/01/2006

record Count in ADO (this works) Dim rec_ctr as Integer, Dastring as String Dim DBQD As New Dim RsQD As New '*(NO OBJECT USED ON FORM)* rec_ctr = 0 Dastring = "Provider = & _ "Data Source =" & DBQD.Open

basic I/O, comma in input-record (VB6.0, SP6) Dear all, When trying to read a line from a text file with: open & "File.txt" for input as #FreeFile len=120 the input record is truncated as soon as there is a comma in the record. Does somebody know a way of coping with comma's in text files? Th

Update record after match is found? VB6, Access97. I get an error no value found. I'm trying to compare a list from table1.field1 to table2.field1 (PART_NUMBER) (text fields) and then if match is found then update table2.field2 (QE_NUMBER) by copying data that is is in table1.field2 (intege

DAO record count, How did it work without move... This works also and this is what I originally had in DAO which I've been slowly converting to ado and hopefully doing all my queries with sql. But I don't have the movelast trick in here. Maybe I've been using DAO incorrectly? -Len = vbHo
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group