Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access ODBC Client Server > bug in form.rec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 1423 of 1511
Post > Topic >>

bug in form.recordset (Access 2003/SQLServer 2005)

by "Dan Goldman" <dgoldm@[EMAIL PROTECTED] > Jan 20, 2008 at 10:49 PM

I have a form whose recordsource is a linked odbc table in a sqlserver 2005

database.

I've found a case where the record displayed in the form isn't the same as

the one in the form's underlying recordset!

I've managed to narrow down the problem to the following:

the following table:
    create table test(id int not null primary key)
has about 30000 rows with specific non-consecutive numbers.

Form1 is a simple form in datasheet view.

when I execute:

    forms("form1").Recordset.findfirst "id=142731"

the form's selected record shows  id 110885

and executing:

    debug.? forms("form1").Recordset("id"), forms("form1")("id")

gives:

     142731      110885

The same happens using the recordsetclone/bookmark method:

    Set rs = Forms("form1").RecordsetClone
    rs.FindFirst "id=142731"
    Forms("form1").Bookmark = rs.Bookmark
    debug.? forms("form1").Recordset("id"), forms("form1")("id")

gives the same results

This only happens with the specific data currently in the table. I tried 
filling the table with other data, and there was no problem.

I can send the data to anyone who's willing to check the problem.

I got the same results on 2 different machines with Access 2003 SP3 and 
SQLServer Express 2005.
 




 11 Posts in Topic:
bug in form.recordset (Access 2003/SQLServer 2005)
"Dan Goldman" &  2008-01-20 22:49:07 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Alex Dybenko"   2008-01-21 12:23:05 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Dan Goldman" &  2008-01-21 12:52:24 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Alex Dybenko"   2008-01-21 14:24:46 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"david" <dav  2008-01-22 12:43:52 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Dan Goldman" &  2008-01-22 12:15:12 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Alex Dybenko"   2008-01-22 15:24:49 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Dan Goldman" &  2008-01-22 15:38:51 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Dan Goldman" &  2008-01-22 16:43:43 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"Alex Dybenko"   2008-01-22 18:31:24 
Re: bug in form.recordset (Access 2003/SQLServer 2005)
"david" <dav  2008-01-23 11:40:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 23:25:42 CST 2008.