o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Can you use Sumif for a CalculatedControl in an Access Report -

I have a report that has groups. Above the groups, in the report header, I want to show a summary of the total Debits, and total Credits, broken down per industry, Internet, Cable etc.

The report currently shows

RCS
--Supervisor
----Employee
------Debit, Credit, Type.

if I put a control at the top of the report, and say =sum(Credit) it will give me a sum of credit for everything, I need it to break down by Type.

Debit -- Credit -- Type
$50 -- $100 -- Internet
$30 -- $50 -- Cable

Will SumIf work on a report? I don't see if in the access help section, but it seems like it would do the trick.

EDIT1:

Just found the Dsum again.
Tried this, but it keeps asking me for a value for the report?

=DSum([Credit],[Report].[rptCS3Detail],"adjReasonCode='DNU'")

rptCS3Detail, is the report, where the textbox is

Edit2:

Tried a few other ways, but get #Error

=DSum("Credit","rptCS3Detail.RecordSource","rptCS3Detail.Filter")
Was hoping, this would use the report data, and the report filter.
Also tried
=DSum("Credit","qryCS3Detail","rptCS3Detail.Filter")


Edit3:

Well, I found "a" way to do it. But it's not very dynamic, and it's a very patchy/bugy kind of way.

I created a textbox on the form that you pick data from.
I save the Where clause that I send to the report, in that textbox.
I also have to type in, each Item in the tblAdjReasonCode
=DSum("Credit","qryCS3Detail",Forms!frmKCreditDebit!txtGStrWhere & " adjReasonCode='Courtesy Credit - Internet'")

So I guess, now my question is, how can I do this better, easier, dynamic, and cookie cutter?

 

Can you use Sumif for a CalculatedControl in an Access Report -
I have a report that has groups. Above the groups, in the report header, I want to show a summary of the total Debits, and total Credits, broken down per industry, Internet, Cable etc. The report currently shows RCS --Supervisor ----Employee ------Debit, Credit, Type. if I


SumIf function with a non constant criteria -
Hi, is it possible to use the SumIf function with a criteria that refers to the value that is in a cell, instead of a constant value? For example: if I want to use something like "SumIf(A2:A6, =D5, C2:C6)" instead of "SumIf(A2:A6, 2003, C2:C6)" Thanks in advance


can sumif use more than 1 sum_range -
This is my excel sheet Cell A CellB Cell C Name Hour Work Hour Rest Alan 3 1 Alan 5 0.5 Steven 2 0 Alan 3 1.5 Ricky 5 0.5 Steven 3 0 If I use sumif using VBA, I wou


Sumif , between to sheets -
I tried to insert the Sumif function in sheet3's column2 to sum the cells in sheet2's column2, comparing with the match between the cells in sheet2's,column1 with sheet3's column1. it's mean if data in sheet's2 column1 george,john,jeny,george,jeny - column2 ,2,4,5,4,8 and the data in


SumIf with Two or More Criteria -
Hello Anyone This is Question Only for excel and NOT realted to VB Basically i want to sum where there are Two Crietrias Any Syntax for the above statement =sum.................... Sorry I coundnt attach the file Below is the range from a1:d9 a b


SUMIF - Multiple Criteria -
This works fine. [code] =SUMIF(A:A,">1",B:B) [code] I need to add another criteria in there which is "AND" less than 3. How can I do it? Thank You


Is There a way in VB to use reports like in access -
Hello EveryBody, Is there a way to use the data report in vb like in ms-access? in ms-access you can use sub report in a report, is there a way to use a subreport in vb? a report inside a report? Thank you all in advance, ERAN


Access Report -
I search the Q and A but can not find a old question that helps. I learn how to use the Docmd.Openreport to print out a Access Report. But I also want to view it the same way you can crystal report thourgh the viewer. Is the any way I can ope the Access report in Access thourgh VB. Doe


Can you open a report saved in access, on a computer without access installed -
i designed a report in access, and then realised that this program is being distributed to many persons, and i cant count on them having access installed... so can i still use the report in the mdb or not? (atm, i am using the access object library thing, to open the report from my


Data report designer in vb6 -
I'm wondering if I should be using the data report designer or if there is a way to add an access report in my project. I want to be able to sort my records by points. I have found a way to do that in Access, but in the data report designer, I cannot find a way to sort. I have a


VB.NET to output an Access Report -
I hope I have the right forums. I have code right now developed in VB.NET to run an access report and output the report as a Snap Shot .. Code is this ; oAccess.DoCmd.OutputTo(Access.AcOutputObjectType.acOutputReport, sReport, "Snapshot Format", "C:\InetPub\wwwroot\R


Load an Access Report from VB -
Can anyone put me on the right track for somehow inserting an access report into a vb app. The app has an access back end and it is currently set up so that when a user wants to run the report s/he clicks a button which opens a seperate db made up of reports and runs the report automat


Help !!!! Displaying The Parameterized Report -
Dear friends I have created a report from a parameter query in access. i want to open that report in the vb. i have opened the normal reports of access in vb but i do not know that how to open parmeterized report of access in vb. please help me in that matter regards


Sum every other row -
Is it possible to sum every other row ? Or maybe sum rows where the row number is odd (or even) ? I'm looking at the SUMIF function, but I don't think that can handle what I am trying to do. Anyone ?


How to refresh a Snapshot Report -
How to refresh a Snapshot Report Hi, I am creating a VB application with Access as backend. The reports are being created in Access. I have converted every report created in Access to a Snapshot report. The snapshot reports are being displayed in VB through SnapViewer Activ


[ACCESS 2003] Disabling Printing of a Report -
Hi All, I have an MS Access report which, due to a variety of reasons which aren't important, causes problems when you try to print the report. I'd like to get around this by disabling the print command so viewers can look at the report, but not print it. Is it possible to set a


Is it difficult to chage VB6 source code for access Crystal Report 10 (from 8.5) -
Now I already have VB6 Program that use Crystal Report 8.5. I have a plan to migrate Crystal Report to version 10 but I alway have some question about Is it difficult to chage VB6 source code for access Crystal Report 10 ? Or, Can I use the same code for access Crystal Report 10?


Can this be done (Access report) -
Hi. Would anyone know of a good forum like that one, but for Access? Until then, I'll ask my question anyway. I couldn't figure out how to (in Access of course) print a report 3 times on the same sheet. I tried having this small sub-report on 3 different reports and add them all


Maximise Access object when running report throVB -
I have an application in visual basic that creates Access object and runs the access report. I use Do cmd object to run the report and maximise method of do cmd to maximise the report. This maximises the Report in Access. But access application runs minimized. How to bring access appl


Access 2000 Report Orientation -
I am printing an Access 2000 from within my VB6 project. This works ok for the most part. However, the report is supposed to print in Landscap mode and was designed as such. Sometimes the report prints in portrait. Is there a way to programmatically force the report to stay in landscap


to assess Ms. Access Report From VB5 -
i'm using VB5 & Ms. Access. my problem occured when i start to create a report using crystal report- i can't call certain record to be display in the report. so, i've try to call Ms. Access Report instead. the problem now is... they cannot find the database where the report i've cr


Creating a report from Access Database -
I don't know where to start, i need to create a report from an Access Database, utilizing 4 tables. I have problems grouping fields... I was thinking of creating the report in Access and then in VB open that report and print...but how do i do that? help M.


Call Access Report from VB without Access -
I read some of the threads on calling an Access report from VB. There seems to be an argument as to weather this can be done if the target machine does not have Access installed. I tried this and failed. It works on the development machine which has Access installed, but I get the


VB and Access Report -
I Need to be able to access an Access report (97) from VB 6. I use an SQL Statement to create a recordset which fills a table in Access 97. I have created a DE and used it to write a DR but I don't like the features in the DR as well as I like access's Additionally, if I can do th


Executing an Access Report from VB With Parms -
Hi All Can Anyone help me with some Code? I Would like to execute an MS Access Report, stored in the Report Tab in MS Access DB, from VB 5 Code and pass a From and a To Date Paramter to the Code/Report. Could you email me directly to: ali.ebrahim@spl.co.za as my email has change


Please offer me some assistance! -
I am a virgin to report writing, please help me. I have an application written in VB6 and uses ADO and Access 2000. I need to to create reports from multiple tables, I would assume by using SQL. If I were to create them in Access, can I send variables to the SQL in Access to crea


Access Report - Total Sub Report -
Hi, I have a report that contains a sub-report. I'm trying to show a total in my main report report footer based on the sub-report, but no luck. I've found an article (208835) on the MS website, but this doesn't work, it's either me or it's not correct? Can someone tell me ho


printing access report from VB -
How can I pass parameters from a VB App to a MS Access Report and print it? (It's like using MS Access as Crystal Report).


Printing Access Report using .net 2003 -
How do I print a MS Access report using .net. I have created the report. I can populate the table to fill the report but I just can't figure out how I am ment to print. HELP!!!!!


Parameterization of automated Access report in VBA -
I am an Access newbie who’s trying to build a VBA procedure to automatically email an Access report out to several different users. I have worked out the scheduling, the email, etc. The problem is I have not been able to figure out how to customize the report to each user. Essenti


Access Reporting -
Forgive me if this is hard to understand. I have never coded VBA and only know .net. I have a report in an access project. What I would like to do is print this report 5 different times using a different query each time. How do I do this? Can it be done in the report? The reason I a


Printing Access report through VB -
OK I have used automation with Access to export and import database, as well as, compacting a database. Can someone help me on how to automate the printing of a stored report in Access 2000? To print now, I am currently using VB's "Printer.Print" commands and, with comple


printing reports in VB by calling an access application -
i have designed a report in Access, but i want to print it using a VB program. the only problem i have is that Access autometically prints every record's report and i want to just print the report for a user specified record. i have tried many things in VB but i can't get it to work. a


MS Access Driver question -
I created a report (using crystal reports) and run it from a computer with Windows 2000 and MS Access 2000 installed, the report works fine. However, when I run this report from a computer that run Windows 98 and does not have MS Access installed, a window always popup asking


Use Access reports on the web -
I have an Access 2000 database on a XP workstation setup as a web server. I have a report in my Access database in whcih I want to display over the web. The query attached to the report contains a field called LName. I want to be able to have a prompt where the user can enter in the la


Report Access in VB5 -
Dear VB users, My Access database is consisting a report. Is it possible to print this report in VB5? If yes: what is the syntax of the command? Nice regards, Michelle.


Report in Access using SQL -
I want to create reports in Access, print them out, but i want to do it in VB and SQL. For example before i had to make a report upon a query, and used criteria to cancel down the results in the report. However all my queries are now VB based using SQL. I am using DAO 3.6


Crystall Report and Access -
I was searching in the threats for more information on crystall report but I couldn't find any. Well the question is dhow to use Crystall report to generate a report for an MS Access Table. I am using DAO for accessing database. Also how can I print it any these kinds of things. A


Run Crystal Report From VB Over Protected Access Database -
Hi, I had develop a application using VB, Ms Access 2000 & Crystal Reports 8.0. I had Protect my Ms Access Database using Secutity option from Ms Access. but when i access Crystal Report file from Visual Basic . but it display as message -- Error in File & Dispaly a report fi


VB->Access->WEB Reports -
Anyone recommend how to, or a good web site to go to, which details how to execute an Access report from VB, passing parameters to this report and also telling the report to output in HTML. Don't want much do I?