Okay, the condition is working. But later on in my macro, I have Close (form) and Quit. Neither of these are working now
Any ideas
Dere
----- \"Petrucci2000\" wrote: ----
Derek wrote
-------------------
| Thread-Topic: Record Count Conditio
| thread-index: AcPasrz4hGJZv6pJQRWNS+Nczz8QBg=
| X-Tomcat-NG: microsoft.public.access.macro
| From: "=?Utf-8?B?RGVyZWsgV2l0dG1hbg==?="
<
[email protected]
| Subject: Record Count Conditio
| Date: Wed, 14 Jan 2004 07:26:10 -080
| Lines:
| Message-ID: <
[email protected]
| MIME-Version: 1.
| Content-Type: text/plain
| charset="Utf-8
| Content-Transfer-Encoding: 7bi
| X-Newsreader: Microsoft CDO for Windows 200
| Content-Class: urn:content-classes:messag
| Importance: norma
| Priority: norma
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.
| Newsgroups: microsoft.public.access.macro
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.18
| Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gb
| Xref: cpmsftngxa07.phx.gbl microsoft.public.access.macros:2948
| X-Tomcat-NG: microsoft.public.access.macro
|
| Good morning
In my macro, I have actions to open a table, selectallrecords, and
deleterecord. The problem I am having is that, if my table is already
empty, I get an action failed message that I cannot delete records that do
not exist
I think I need to build a condition that will cause this step to be skipped
if the table is empty, but I don't see functions to make that happen. Can
someone help? Thank you
Dere
|
Try this for your conditio
DCount("[id]","[table1]")=
Note: [id] is a primary key field in the table
I hope this helps! If you have additional questions on this topic, please
respond back to this posting
Regards
Eric Butt
Microsoft Access Suppor
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<
http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <
http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026.