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

Error Number No Records Found

Hi All:

In FileMaker Pro, the error number for "no records found" is 401.

What is the equivalent error number in Access (2003)? I want to
capture for the "On Open" Event of a report. If there are no records
found, then return to the Switchboard and close the report.

Thanks!

amy
===
Nov 12 '05 #1
4 2378
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Access provides another method, the NoData event in the report object:

Open the report in design view.
Open the Properties dialog box for the Report.
Select the Events tab.
Double-click the ComboBox to the right of the On No Data event so the
item [Event Procedure] appears.
Click the "..." button to the right of [Event Procedure].
Enter something like the following in the OnNoData event procedure:

MsgBox "No data for this report", vbCritical
Cancel = True

HTH,

MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQA701YechKqOuFEgEQKvDACeLcqGuo/k7gOJVolVQwn/zS2884sAoOI1
RIsDGc8XzjuazUfBwx5ApLDY
=1RcO
-----END PGP SIGNATURE-----
amywolfie wrote:
Hi All:

In FileMaker Pro, the error number for "no records found" is 401.

What is the equivalent error number in Access (2003)? I want to
capture for the "On Open" Event of a report. If there are no records
found, then return to the Switchboard and close the report.

Thanks!

amy
===


Nov 12 '05 #2
Amy,

Use the NoData event of the report and you don't have to deal with it in the
Open event.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"amywolfie" <am*******@verizon.net> wrote in message
news:33**************************@posting.google.c om...
Hi All:

In FileMaker Pro, the error number for "no records found" is 401.

What is the equivalent error number in Access (2003)? I want to
capture for the "On Open" Event of a report. If there are no records
found, then return to the Switchboard and close the report.

Thanks!

amy
===

Nov 12 '05 #3
am*******@verizon.net (amywolfie) wrote in message news:<33**************************@posting.google. com>...
Hi All:

In FileMaker Pro, the error number for "no records found" is 401.

What is the equivalent error number in Access (2003)? I want to
capture for the "On Open" Event of a report. If there are no records
found, then return to the Switchboard and close the report.

Thanks!

amy
===


FileMaker... <shudder>

Use the NoData Event of the report to do this.
Nov 12 '05 #4
No need to shudder, Pieter! FileMaker has its uses too :>

Thanks everyone for the tip on the No Data function. That's even
easier than having to write code citing an error number!

Amy
==
pi********@hotmail.com (Pieter Linden) wrote in message news:<bf**************************@posting.google. com>...
am*******@verizon.net (amywolfie) wrote in message news:<33**************************@posting.google. com>...
Hi All:

In FileMaker Pro, the error number for "no records found" is 401.

What is the equivalent error number in Access (2003)? I want to
capture for the "On Open" Event of a report. If there are no records
found, then return to the Switchboard and close the report.

Thanks!

amy
===


FileMaker... <shudder>

Use the NoData Event of the report to do this.

Nov 12 '05 #5

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

Similar topics

8
by: Steve | last post by:
I have several pairs of synchronized subforms in an application. I have a Delete button for each pair that uses the following code or similar to delete a record in the second subform: ...
3
by: Nathan Bloomfield | last post by:
Hi there, I am having difficulty with a piece of code which would work wonders for my application if only the error trapping worked properly. Basically, it works as follows: - adds records...
7
by: astro | last post by:
Anyone have suggestions on where to troubleshoot this error? Background: -Access 2k v. 9.0.6926 sp3 - front and backend on production server (wiindows 2k) -accessed via Citrix -front-end is...
2
by: jthep | last post by:
I'm trying to get this piece of code I converted from C to work in C++ but I'm getting an access violation error. Problem occurs at line 61. Someone can help me with this? The function...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
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
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,...
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...

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.