🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.databases.ms-access
Article #189

Re: How can I limit the number of records in a table? (MS Access)

#189
From: Trevor Best
Date: Wed, 06 May 1998 00:00
31 lines
2153 bytes
On Wed, 6 May 1998 22:12:36 +0100 in comp.databases.ms-access, Scott
Mordecai <Scott@musicman.demon.co.uk> wrote:

>Clue #3 - if I'd had more than five seconds to learn Access and produce
>an application I wouldn't have had to ask! (The last time I wrote an
>application dBase III was *the* database to use!)

I hope you realise that I wasn't having a pop at you, merely giving
pointers as to you to understand where code goes so when others give you
form_afterupdate or fieldname_dblClick then you'll know.

>By the way, one of the suggestions here works a treat, the other gives
>an error (the "Dcount" version), probably me just not understanding the
>command and therefore not typing it in properly.

If the foriegn key field in question was text then that would have been:

DCount("*","ThisTable","FK = '" & Me!FK & "'")

                    \|||/
                    /   \
                   C o o D
-----------------ooO--u--Ooo-------------------------------
To reply by mail, replace the "nospam" in my address with "trevor",
then replace the "o" in easynot with an "e".
But please DONT cc me in on posts, I read this group as well.
MS Access FAQ now available on my site below.
http://www.trevor.easynet.co.uk/

Roget's Thesaurus rules - ok, all right, very well, you bet, certainly
Technical Details
Message-ID: <3554ef9f.2945358@news.easynet.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <cUehgLAJMNT1Ewmx@musicman.demon.co.uk> <35640a0b.6616746@news.easynet.co.uk> <WG9DUHAFFfT1Ewnt@musicman.demon.co.uk> <35506df6.477360@news.easynet.co.uk> <ZEKgkKAEJNU1Ew$K@musicman.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1036bc,d87e857d2b30eade
X-Google-Attributes: gid1036bc,public
X-Google-Thread: ff0ac,d87e857d2b30eade
X-Google-Attributes: gidff0ac,public
From: nospam@easynot.co.uk (Trevor Best)
Subject: Re: How can I limit the number of records in a table? (MS Access)
Date: 1998/05/06
Message-ID: <3554ef9f.2945358@news.easynet.co.uk>
X-Deja-AN: 350932855
Content-Transfer-Encoding: 7bit
References: <cUehgLAJMNT1Ewmx@musicman.demon.co.uk> <35640a0b.6616746@news.easynet.co.uk> <WG9DUHAFFfT1Ewnt@musicman.demon.co.uk> <35506df6.477360@news.easynet.co.uk> <ZEKgkKAEJNU1Ew$K@musicman.demon.co.uk>
Mime-Version: 1.0
Reply-To: nospam@easynot.co.uk
Content-Type: text/plain; charset=us-ascii
Organization: Viasys Limited
Newsgroups: comp.databases.ms-access,demon.tech.pc