473,569 Members | 2,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to AVOID / SKIP run-time error 2105 and 2499

135 New Member
Hello, in several forms i have a NEXT, PREVIOUS and SAVE command buttons which were working perfectly...no errors showing...nothi ng!!! i had to convert my DB to 2003 so i could create the .mde. I did the conversion and now my forms give me a run-time error 2105 or 2499 every time i reach the first/last record and try to go one more previous/next record. Im new with access and dont want any fancy error handler i just need to AVOID the error and be able to continue working.

What can i do??? the following is the code for a NEXT button im using.
Please help


Expand|Select|Wrap|Line Numbers
  1. Private Sub GO_TO_NEXT_Click()
  2. On Error GoTo Err_GO_TO_NEXT_Click
  3.  
  4.  
  5.     DoCmd.GoToRecord , , acNext
  6.  
  7.    Me.Engineering_subform.Requery
  8.     Me.Refresh
  9.  
  10.  
  11. Exit_GO_TO_NEXT_Click:
  12.     Exit Sub
  13.  
  14. Err_GO_TO_NEXT_Click:
  15.     Resume Exit_GO_TO_NEXT_Click
  16.  
  17. End Sub
Nov 16 '07 #1
1 3103
ADezii
8,834 Recognized Expert Expert
Hello, in several forms i have a NEXT, PREVIOUS and SAVE command buttons which were working perfectly...no errors showing...nothi ng!!! i had to convert my DB to 2003 so i could create the .mde. I did the conversion and now my forms give me a run-time error 2105 or 2499 every time i reach the first/last record and try to go one more previous/next record. Im new with access and dont want any fancy error handler i just need to AVOID the error and be able to continue working.

What can i do??? the following is the code for a NEXT button im using.
Please help


Expand|Select|Wrap|Line Numbers
  1. Private Sub GO_TO_NEXT_Click()
  2. On Error GoTo Err_GO_TO_NEXT_Click
  3.  
  4.  
  5.     DoCmd.GoToRecord , , acNext
  6.  
  7.    Me.Engineering_subform.Requery
  8.     Me.Refresh
  9.  
  10.  
  11. Exit_GO_TO_NEXT_Click:
  12.     Exit Sub
  13.  
  14. Err_GO_TO_NEXT_Click:
  15.     Resume Exit_GO_TO_NEXT_Click
  16.  
  17. End Sub
Error Numbers 2105 and 2499 produce the same Error Descriptions, namely, Application-defined or object-defined error. Check your References, 1 or 2 may have been corrupted during the conversion. What you are looking for is MISSING in the Library Row.
Nov 16 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
2134
by: Stephen Ferg | last post by:
I've just spent several very frustrating hours tracking down a bug in one of my programs. The problem was that I was writing text to a file, and when I was done I coded f.close when I should have been coding f.close()
2
1774
by: | last post by:
I have this class: --------------------------------------------- class A { string a; int instances; A(); static vector<A> all; public: static A *CreateA(...................);
59
6820
by: AK | last post by:
I tried to google "skip scan DB2" but came up with nothing. Does DB2 have the feature under a different name?
24
5727
by: Robin Cole | last post by:
I'd like a code review if anyone has the time. The code implements a basic skip list library for generic use. I use the following header for debug macros: /* public.h - Public declarations and macros */ #ifndef PUBLIC #define PUBLIC
29
4834
by: CAH | last post by:
Hi Can you avoid that googlebot indexes PHPSESSID pages? Googlebot is indexing pages with PHPSESSID, which makes it think my page has a infinite number of pages. How can one avoid this? Here is an exsample of url that google register, that might make is more clear what is happening ...
2
3218
by: magix | last post by:
I have an drop down list let say: <SELECT name="id" id="id" OnClick="Skip()"> <option value="0"></option> <option value="1">Item 1</option> <option value="2">Item 2</option> <option value="3">Item 3</option> <option value="4">Item 4</option>
0
2917
by: Pratchaya | last post by:
How can i dump (mysqldump) with skip query logging ? Now, when i run mysqldump. mysql log ( query log ) default running/keeping all in result mysqldump. It's possible ? to run mysqldump without query logging ? ( when i run mysqldump .. i 'm not need to keey query log ) Thank you very much.
3
20572
by: tjuiowa | last post by:
Hi I am trying to import a text file into a MS Access database. The first 11 lines of the text file are in a different format, so i would like to skip those lines and start at line 12. is there a quick and easy way to skip lines using VB in Access. Here is a sample of my text file: SDS 2.2 AD Results 1.0 Filename PlateID Assay...
10
1638
by: jambalapamba | last post by:
I am trying to skip element in xml document where style attribute is VISIBILITY: hidden or DISPLAY: none. In the following example i want to skip the last two elements but when i skip the element with id=”Div1” and next reader.Read() reads “ includeme” but i expected it to read element <a id ="Div2"...
21
1418
by: spasmous | last post by:
// return early if all points are the same for(int i=1; i<n; i++) if(y != y) goto SKIP; return; SKIP: Can someone help me with an alternative to this snippet that avoids goto? Without introducing a new variable?
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7974
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.