Is the unbound control on UnitDetails? If it is try changing the ControlSource to:
=DCount("*","[WeatherProofing]","UnitID = " & [UnitID])
I don't see that doing much but it might.
--- In MS_Access_Professionals@yahoogroups.com, <ms_access_professionals@yahoogroups.com> wrote:
Maybe its something with Access 2013 because some are displaying the 0 and some are not.
With Warm Regards,
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265Â Ext. 130
Fax (605)964-1070
alorenzini@crhanetwork.org
âOnly those who will risk going too far can possibly find out how far one can go.â
________________________________
From: "wrmosca@comcast.net" <wrmosca@comcast.net>
To: MS_Access_Professionals@yahoogroups.com
Sent: Tuesday, September 3, 2013 3:36 PM
Subject: [MS_AccessPros] RE: Displaying a zero in an expression
Â
Art
DCount returns zero if no records match the criteria. Are you not getting that now?
Regards, Bill Mosca, Founder - MS_Access_Professionals http://www.thatlldoit.com/ Microsoft Office Access MVP https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E My nothing-to-do-with-Access blog http://wrmosca.wordpress.com/
Â
With Warm Regards,
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265Â Ext. 130
Fax (605)964-1070
alorenzini@crhanetwork.org
âOnly those who will risk going too far can possibly find out how far one can go.â
________________________________
From: "wrmosca@comcast.net" <wrmosca@comcast.net>
To: MS_Access_Professionals@yahoogroups.com
Sent: Tuesday, September 3, 2013 3:36 PM
Subject: [MS_AccessPros] RE: Displaying a zero in an expression
Â
Art
DCount returns zero if no records match the criteria. Are you not getting that now?
Regards, Bill Mosca, Founder - MS_Access_Professionals http://www.thatlldoit.com/ Microsoft Office Access MVP https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E My nothing-to-do-with-Access blog http://wrmosca.wordpress.com/
Â
--- In mailto:MS_Access_Professionals%40yahoogroups.com, <mailto:ms_access_professionals%40yahoogroups.com> wrote:
I have the following expression in a unbound field called txtHistoryRecCount: Â =DCount("*","[WeatherProofing]","UnitID = " & [Forms]![UnitDetails]![UnitID]) Â If the count returned is 0 then I would like to display a 0 in the field. Any ideas? Â Thank you, Â Arthur Lorenzini Sioux Falls, SD
[Non-text portions of this message have been removed]
__._,_.___
Reply via web post | Reply to sender | Reply to group | Start a New Topic | Messages in this topic (4) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar