DataBase - records
Asked By thewabit via AccessMonster.com
07-Feb-10 08:19 PM
Is it possible to have a message or a flag of somesort pop up when a specific
numbered record is entered? Say I want something to happen after record # 10
is entered.
thanks
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/201002/1
NameOfYourTable
(1)
Tablesdbdesign
(1)
Somesort
(1)
Santus
(1)
Steve replied to thewabit via AccessMonster.com
Look at the MsgBox function in the Help file. Use it in your form's
AfterUpdate event.
Steve
santus@penn.com
John W. Vinson replied to thewabit via AccessMonster.com
What do *YOU* mean by the "record number"? Are you counting records, or
waiting for the (meaningless, arbitrary) autonumber value, or what?
Bear in mind that "record number" is not a native concept within an Access
table.
--
John W. Vinson [MVP]
thewabit via AccessMonster.com replied to John W. Vinson
Maybe it would be easier to explain what I want to do. I want to analyse
every 10 ten records as a set. So I need an easy way for the end user to be
reminded when the "10th" one or "20th" one has been entered without having to
go into the table and be on the look out for it.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-tablesdbdesign/201002/1
Steve replied to thewabit via AccessMonster.com
Put the following code in the form's AfterUpdate event:
If (DCount("*","NameOfYourTable") Mod 10) = 0 Then
MsgBox "10 Records have Now Been Entered Since Last Analysis"
End If
Steve
santus@penn.com
thewabit via AccessMonster.com replied to Steve
Thanks Steve!
--
Message posted via http://www.accessmonster.com
Office (1) Microsoft Access (1) MVP (1) EA (1) Database (1) Access (1) Audiovideoconsultant (1) Tablesdbdesign (1) This newsgroup (tablesdbdesign) is dedicated to helping folks with table design in Microsoft Access, a relational database. I
i use? - - Message posted via AccessMonster.com http: / / www.accessmonster.com / Uwe / Forums.aspx / access-tablesdbdesign / 200809 / 1 Access Tables DB Design Discussions AccessMonster (1) MVP (1) GMT (1) Deadline (1) Reconciliation (1) Tablesdbdesign (1) Urgent (1) Assignment (1) On Sat, 20 Sep 2008 13:11:33 GMT, "hugz
given table without any filtering. . .sounds easy enough i thought. . .lol. Access Modules DAO Discussions NameOfYourTable (1) Database (1) RecordCount (1) IsDCount (1) Simplest thing is DCount("*", "NameOfYourTable") that works for local tables and linked tables. If the tables are not linked but in the database, this is probably the fastest way to get a count. CurrentDB().TableDefs("NameOfYourTable").RecordCount John Spencer Access MVP 2002-2005, 2007-2010 The Hilltop Institute University of Maryland