I expect I will need to use a similar condition for the
repeat expression in the runmacro action in macro A.
Any help would be appreciated. Thanks.
The following condition will be true when you are not on the last record of
a form's recordsource:
DCount("*", [Forms]![FormName]![RecordSource]) <>
[Forms]![FormName].[CurrentRecord]
The following condition will be true when you are on the last record of a
form's recordsource:
DCount("*", [Forms]![FormName]![RecordSource]) =
[Forms]![FormName].[CurrentRecord]
You can use the above conditions to allow/disallow actions appropriately.
--
Hoping that this is helpful...
Ken Snell
<MS ACCESS MVP>
"Jolyn O" <joh...@ix.netcom.com> wrote in message
news:98e501c27959$14591d70$3aef2ecf@TKMSFTNGXA09...
The following condition will be true when you are not on the last record of
a form's recordsource:
DCount("*", [Forms]![FormName].[RecordSource]) <>
[Forms]![FormName].[CurrentRecord]
The following condition will be true when you are on the last record of a
form's recordsource:
DCount("*", [Forms]![FormName].[RecordSource]) =
[Forms]![FormName].[CurrentRecord]
--
Hoping that this is helpful...
Ken Snell
<MS ACCESS MVP>
"Ken Snell" <ksn...@comcast.net> wrote in message
news:eyySX0VeCHA.1656@tkmsftngp11...
CurrentRecord is a property of the form, too. It is the number of the record
that currently is displayed on the form. When CurrentRecord number equals
the number returned by DCount, you're displaying the last record for the
form.
--
Hoping that this is helpful...
Ken Snell
<MS ACCESS MVP>
"Jolyn O" <joh...@ix.netcom.com> wrote in message
news:998b01c27963$6a07bb50$3aef2ecf@TKMSFTNGXA09...
"Jolyn O." <joh...@ix.netcom.com> wrote in message
news:ae0001c279fb$99888b50$35ef2ecf@TKMSFTNGXA11...