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

Customize standardERR

Hi there,

Everytime, when I create the Next and Previous buttons for rolling records in
Access form. When it reaches either to last or first record, there is a message pops up says "You cann't go to the Specified Record".

How can I change this message to:

1. "You come to last record" when I click the next button and come to last record

2. "You come to first record" when I click the previous button and come to the firs record.

Thank you in advance

Regards,
Dec 18 '07 #1
3 1059
missinglinq
3,532 Expert 2GB
1. "You come to last record" when I click the next button and come to last record

Replace current error routine with:
Expand|Select|Wrap|Line Numbers
  1. If Err.Number = 2105 Then
  2.    MsgBox  "You've come to the last record"
  3.    Resume YourExitRoutineNameGoesHere
  4. End If
  5.  
2. "You come to first record" when I click the previous button and come to the firs record.

Once again, replace current error routine with:

Expand|Select|Wrap|Line Numbers
  1. If Err.Number = 2105 Then
  2.    MsgBox  "You've come to the first record"
  3.    Resume YourExitRoutineNameGoesHere
  4. End If
  5.  
Linq ;0)>
Dec 18 '07 #2
1. "You come to last record" when I click the next button and come to last record

Replace current error routine with:
Expand|Select|Wrap|Line Numbers
  1. If Err.Number = 2105 Then
  2.    MsgBox  "You've come to the last record"
  3.    Resume YourExitRoutineNameGoesHere
  4. End If
  5.  
2. "You come to first record" when I click the previous button and come to the firs record.

Once again, replace current error routine with:

Expand|Select|Wrap|Line Numbers
  1. If Err.Number = 2105 Then
  2.    MsgBox  "You've come to the first record"
  3.    Resume YourExitRoutineNameGoesHere
  4. End If
  5.  
Linq ;0)>

Thank you so much missingling.
Dec 19 '07 #3
Thank you so much missingling.
Also, Can I ask one other question please?

I also would like to MsgBox: If a subformfield is greater than mainformfield then MsgBox.

Here is my code, but it doesn't work

Mainform Current Event:
If Forms!mysubform!txtstandingKIP > txtAmountAdv then
MsgBox ("The Value is greater than Budget")
Me.Forms!mysubform!OtherCurrency.SetFocus

End If
End Sub

Please advise, Thank you in advance

Regards,
Dec 19 '07 #4

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

Similar topics

3
by: Chris Kilmer | last post by:
I would like to be able to customize the path structure that VS.NET 2003 creates for projects. 1. I'd like to be able to create a project without VS.NET creating a folder for that project. ...
1
by: Shabam | last post by:
When I set validateRequest="true", and a user tries to submit html into the form, the server returns with a huge error page detailing what wasn't allowed. Is there a way to customize just this...
1
by: deko | last post by:
I've found that the "Remove Filter/Sort" selection in the Shortcut menu (displayed on right click) produces ugly, untrappable errors, even though "Allow Filters" is set to No in the subform. ...
14
by: deko | last post by:
The below code dials a phone number when the subform datasheet cell containing the number is double clicked. The problem is that the dialer application (c:\windows\dialer.exe) pops up windows on...
2
by: JMCN | last post by:
hi i'm having a problem with the customize a shortcut menu. i read the ms office assistance: customize a shortcut menu/delete a command or add to a shortcut menu and followed the simple...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
0
by: msnews.microsoft.com | last post by:
Hi All, As we have seen the customize toolbar windows in almost all windows programs (Please right click on the toolbar portion in Microsoft Word and click on customize). I would like to add...
5
by: DLN | last post by:
Getting rid of the Customize option. I want to get rid of the {Right-Click}-{Customize} option on the tool bars. I’ve been able to get rid of all the other options but not Customize itself. ...
0
Iman100
by: Iman100 | last post by:
Hi I have quiz (MCQ) data stored in my Database. I need to customize the question view to show the question then use RadioButtonList to display my choices. Is there is any tutorial or guide I can...
0
by: Sky | last post by:
I have an Access 2003 front-end database with custom toolbars. The toolbars work fine. One annoying feature is that at the far right edge of each custom toolbar there a small dropdown arrow....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
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,...

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.