Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 3rd, 2005, 12:40 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default Report x Immediate Window

Hi access users,
Having a report that on the footer section displays the total of a field, how do i have the total
displayed on the immediate window ? The reason is to search why the total is displayed roughly with
no decimal digits. For instance 430 in place of 427,5.
Thanks for ur care,
P

 
Old October 3rd, 2005, 12:49 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Penta,

I don't know if you can - just due to the nature of the report.

Try design view of the report and in that particular textbox, look at the properties and see what the Decimal Places property is set to.

Hope that helps,

Mike

Mike
EchoVue.com
 
Old October 3rd, 2005, 02:50 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Mike,
That has come to my mind too but it was not the solution. Reports are difficult
to update sometimes and probably it happened this time. I'll have to review all the code but i thought maybe someone would point a way to resolve
the problem easily.
rgds P

 
Old November 4th, 2005, 01:48 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi everyboby,
It's better late than never. I've done a very complicate way to find a very
simple error. I've used code to print the name of the controls of the report
to the Immediate window.How?
      Sub ListControlsOnOpenReports()
       Dim rpt1 As Report, ctl1 As Control

'Enumerate all open reports
        For Each rpt1 In Reports
        Debug.Print rpt1.Name

'Enumerate each control on a specific open report
    For Each ctl1 In rpt1.Controls
        Debug.Print " " & ctl1.Name & ", " & _
            IIf(ctl1.ControlType = acLabel, "label", "not label")
    Next ctl1
Next rpt1

End Sub


 Then i've coded the preview report code to print
the value of the textbox that was having a wrong sum to the IW. How ?
       Debug.Print Reports("MyReport").MyTextBox
When i checked the value i've saw that the textbox having the wrong value
wasnt the one i've been working on. Yes, it was a rough mistake and i'm sorry
for having been wasting ur time.
Tks P








Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
Opening of New Window to show a .pdf report Dilip Nagle General .NET 5 March 8th, 2007 01:25 AM
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
Sub Report in new window sidh80 Reporting Services 0 September 30th, 2006 12:54 AM
Close Parent window on opening child window pkdev Javascript How-To 8 April 11th, 2004 12:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.