Home > Error > Error # 3021 Was Generated By Adodb.field

Error # 3021 Was Generated By Adodb.field

Go to Solution 18 Comments LVL 142 Overall: Level 142 Visual Basic Classic 32 Message Active today Expert Comment by:Guy Hengel [angelIII / a3]2008-07-14 can you show more details like I'm closing this question. Topology and the 2016 Nobel Prize in Physics Does the string "...CATCAT..." appear in the DNA of Felis catus? Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. news

The Recordset object must support bookmarks or backward cursor movement; otherwise, the method call will generate an error. To start viewing messages, select the forum that you want to visit from the selection below. Normally, I'd also ask you which line of code was causing the error, too. i added a 500millisecond delay and the code works great!

Browse other questions tagged excel ms-access vba or ask your own question. Requested operation requires a current record.Source Error: Line 84: Dim bID = Request("batchID")Line 85: oRs = oCandidate.getCandidateFeePaidDetails(bID)Line 86: lblTotalPaidAmount.Text = getDecimalFormat(oRs("batchPaidAmount").Value)Line 87: End SubLine 88: #End Region Source File: D:\AustinProjects\SIEIMSDev\SIEIMSApps\Admin\CancelAdmission.aspx.vb Line: I think you may be forced into coding changes. BOF and EOF = true and therefore I get error 3021.

once the order is complete i go through each line of the tmp_line and create the order_line table. You need to provide suitable detail, and NeoPa's guidance in the sticky thread at the top of the forum will assist you with this. -Stewart Oct 23 '11 #6 reply Message It's quick & easy. Very simple number line with points Simulate keystrokes Any approximate date we will have Monero wallet with graphical user interface?

on my end i have to wait before processing. An attempt to move forward when the EOF property is already True generates an error. Requested operation requires a current record.query=SELECT idDiscountperquantity FROM discountsperquantity WHERE idproduct=3848 and discountPerUnit<>0Request Method: GETServer Port: 80HTTPS: offUser Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36URL: /pc/viewCategories.aspHTTP http://stackoverflow.com/questions/7664151/error-3021-no-current-record-has-been-found-query-data-from-access-to-excel We've got lots of great SQL Server experts to answer whatever question you can come up with.

I Put If Satements to Control empty recordsets. so I too would have used ST01010000225 as an order_num and 1 as the line_num. If so, is there a reference procedure somewhere? Come on over!

Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We If the last record is the current record and you call the MoveNext method, ADO sets the current record to the position after the last record in the Recordset (EOF is Then I got the error when first using Set rs = rs.NextRecordset() and then Do Until rs.Eof block. How to cope with too slow Wi-Fi at hotel?

The only difference was that this loop was deleting the first record in the recordset each time rather than the last and therefore after each delete it executed a MOVEFIRST rather Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! We appreciate your feedback. Yeah, the SET NOCOUNT case happened with me too and its even weird to find out problem in such cases.Harsh AthalyeIndia."Nothing is Impossible" Topic Reply to Topic Printer Friendly

Although I am not going to use it, this code did work : If rset.BOF <> True Or rset.EOF <> True Then Do While rset.RecordCount > 0 rset.MoveLast rset.Delete Loop End We are happy to advise and support you with specific issues, so please feel free to post again if we can be of more assistance. Neither, actually, does the solution I thought I had. More about the author Is it safe to make backup of wallet?

Not the answer you're looking for? Three rings to rule them all What is the most befitting place to drop 'H'itler bomb to score decisive victory in 1945? It occurs on the line marked 'Error Here in the following snippet: If rset.BOF <> True Or rset.EOF <> True Then rset.MoveLast Do While rset.BOF <> True rset.Delete If rset.BOF <>

Check it as suggested by HansUp.

The first was ok, but for some reason the former developer had added a SELECT NULL as the second returning resultset. Post your question and get tips & solutions from a community of 418,502 IT Pros & Developers. It is either closed or invalid in this context adErrInvalidParamInfo 3708 -2146824580 0x800A0E7C Parameter object is improperly defined adErrInvalidTransaction 3714 -2146824574 0x800A0E82 Coordinating transaction is invalid adErrInvalidURL 3729 -2146824559 0x800A0E91 URL Join our community for more solutions or to ask questions.

Join them; it only takes a minute: Sign up Code is OK in DAO but gives run-time error '3021' in ADO up vote 2 down vote favorite This occurs after replacing The content you requested has been removed. Exception Details: System.Runtime.InteropServices.COMException: Either BOF or EOF is True, or the current record has been deleted. Similar topics Run-time error 3021.

ADO Programmer's Reference ADO API Reference ADO Methods ADO Methods MoveFirst, MoveLast, MoveNext, and MovePrevious Methods (ADO) MoveFirst, MoveLast, MoveNext, and MovePrevious Methods (ADO) MoveFirst, MoveLast, MoveNext, and MovePrevious Methods (ADO)