473,395 Members | 2,253 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,395 software developers and data experts.

Access 97 - Error Message

Please help if you can.

I have a subform with a field on it that is set to have a required value.

The problem is that when the user does not fill out all the appropriate
information and tries to navigate to another record in the subform or main
form, the Access default message comes up saying that the value is required,
but in a very techincal way that the user will have no idea what it means.
I tried putting a message on the OnError event (it works) my message
appears, but then after my message comes up, the Access message comes up too
right after.

Is there a way to get rid of the default access message?

Thanks in advance,
Paul
Nov 13 '05 #1
5 1794
Paul,
This is one where I'd probably implement the business rule in code rather
than using the built-in property of a control. I gain two things by doing
this. First, I have a bit more work to do because I can't rely on Access to
catch the error for me. Second, I gain the control I want over how the
error/event is handled. In the past I have implemented my own error/event
handling system so that I and my client have some control over what happens
when an error or event occurs. Now if Microsoft would please implement
triggers in Jet . . .
"Paul" <pz****@rogers.com> wrote in message
news:yM********************@rogers.com...
Please help if you can.

I have a subform with a field on it that is set to have a required value.

The problem is that when the user does not fill out all the appropriate
information and tries to navigate to another record in the subform or main
form, the Access default message comes up saying that the value is
required, but in a very techincal way that the user will have no idea what
it means. I tried putting a message on the OnError event (it works) my
message appears, but then after my message comes up, the Access message
comes up too right after.

Is there a way to get rid of the default access message?

Thanks in advance,
Paul

Nov 13 '05 #2
Thanks Alan,

I was hoping to use Access to do the work for me. But since its doing
things that I don't want, I will have to do as you suggested.
Too bad there is no quick fix for this.
"Alan Webb" <kn*****@hotmail.com> wrote in message
news:gc********************@comcast.com...
Paul,
This is one where I'd probably implement the business rule in code rather
than using the built-in property of a control. I gain two things by doing
this. First, I have a bit more work to do because I can't rely on Access
to catch the error for me. Second, I gain the control I want over how the
error/event is handled. In the past I have implemented my own error/event
handling system so that I and my client have some control over what
happens when an error or event occurs. Now if Microsoft would please
implement triggers in Jet . . .
"Paul" <pz****@rogers.com> wrote in message
news:yM********************@rogers.com...
Please help if you can.

I have a subform with a field on it that is set to have a required value.

The problem is that when the user does not fill out all the appropriate
information and tries to navigate to another record in the subform or
main form, the Access default message comes up saying that the value is
required, but in a very techincal way that the user will have no idea
what it means. I tried putting a message on the OnError event (it works)
my message appears, but then after my message comes up, the Access
message comes up too right after.

Is there a way to get rid of the default access message?

Thanks in advance,
Paul


Nov 13 '05 #3
Paul wrote:
Please help if you can.

I have a subform with a field on it that is set to have a required value.

The problem is that when the user does not fill out all the appropriate
information and tries to navigate to another record in the subform or main
form, the Access default message comes up saying that the value is required,
but in a very techincal way that the user will have no idea what it means.
I tried putting a message on the OnError event (it works) my message
appears, but then after my message comes up, the Access message comes up too
right after.

Is there a way to get rid of the default access message?


I thought you could use the Error event of the form, setting Response to
acDataErrContinue. You have to cancel the navigation all right! because
a required field is, well, required.

I executed a small test, in A97, and it seems to work: no message of
Access. This is only with a single form, hang on... it does work with
subforms, too. I used the Error event in the subform.

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #4
I tried it Alans way, and it works fine..But this is something I will
definitly note for next time.

Thanks,

"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:cq**********@news2.solcon.nl...
Paul wrote:
Please help if you can.

I have a subform with a field on it that is set to have a required value.

The problem is that when the user does not fill out all the appropriate
information and tries to navigate to another record in the subform or
main form, the Access default message comes up saying that the value is
required, but in a very techincal way that the user will have no idea
what it means. I tried putting a message on the OnError event (it works)
my message appears, but then after my message comes up, the Access
message comes up too right after.

Is there a way to get rid of the default access message?


I thought you could use the Error event of the form, setting Response to
acDataErrContinue. You have to cancel the navigation all right! because a
required field is, well, required.

I executed a small test, in A97, and it seems to work: no message of
Access. This is only with a single form, hang on... it does work with
subforms, too. I used the Error event in the subform.

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea

Nov 13 '05 #5
Paul wrote:
I tried putting a message on the OnError event (it works) my message
appears, but then after my message comes up, the Access message comes up too
right after.

Is there a way to get rid of the default access message?


Yes. In the on Error event, after your line of code for the message
box, type in:

Private Sub Form_Error(DataErr As Integer, Response As Integer)

If DataErr = <number for the data error you're trapping> then

Msgbox <whatever>

Response = acDataErrContinue

end if

End Sub

YOu can use a select statement or even dispense with an if or reference
to the dataerr number at all if you're OK.

Note that the DataErr argument refers to the err collection of errors
that you use in error trapping.

If your level is at the point where nothing what I wrote makes any sense
to you yet - and I'm not trying to be nasty here, Paul, we are all at
different stages in our infinite learning curves 8) - the main thing to
remember is the line:

Response = acDataErrContinue

after your message box.

All due respect to Alan, who is miles higher than I am in terms of
competence and experience, I personally try and have the structure of
the data tables do as much work as possible for me. It's too easy to
induce a bug or forgotten something or other when you are writing long
code to apply business rules in code called from the form rather
applying those rules via database structure.

For me, anyway... that comes from an Oracle background where one does
have triggers and things Alan is crying out for! 8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Fabian von Romberg | last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000 PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a report using the webbrowser, I get the following...
1
by: annie | last post by:
Hi all, I have recently ported my Access 2000 app to SQL Server, keeping the Access client as the front end using linked tables. I am also using triggers on my SQL tables to trap orphan...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.