473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Count only records what i see in report

82 64KB
I cancelled some items in my report, when a field = YES, Cancel = TRUE ..but when I =count([assetNo]) still it counts the cancelled assetNo ....
May 2 '13 #1
9 1227
Rabbit
12,516 Expert Mod 8TB
What do you mean by you cancelled items on the report?
May 2 '13 #2
deanvilar
82 64KB
it means that the row from my report will not show when txtreleased = YES
May 2 '13 #3
Rabbit
12,516 Expert Mod 8TB
And how are you preventing the row from being shown?
May 2 '13 #4
deanvilar
82 64KB
Expand|Select|Wrap|Line Numbers
  1. if me.released=YES then
  2.    cancel = true
  3. end if
May 2 '13 #5
deanvilar
82 64KB
I got it ...

created a textbox and placed an iif statement ... iif([released]="NO",1,0)

Then created another textbox to call that text to count the total
May 2 '13 #6
Rabbit
12,516 Expert Mod 8TB
Please use code tags when posting code.

And that code sits where....?

If I had to guess, you have it in some sort of format or paint event on the report. Just because you're not displaying it doesn't mean it's not in the record source. And you are counting the record source, not what's visible. You don't need any of this VBA code or textboxes to sum up textboxes complication. You just need to filter your record source directly. You've overly complicated the situation.
May 2 '13 #7
deanvilar
82 64KB
sorry sir @rabbit for that ... i'll use code tags in my next posts....

that's 1 of the problem, because 1 of the fields in my report ENDDATE is fetched thru DMAX in detail format event of the report so there's a complication
May 2 '13 #8
Rabbit
12,516 Expert Mod 8TB
There's probably no need to use DMax() through the format event either. I'm 99% sure that you've overly complicated the situation and there's no need for you to use any VBA code at all.

But I can't be 100% sure unless I know what the query is and what the code is doing.
May 2 '13 #9
deanvilar
82 64KB
it' a long story sir @Rabbit if I will explain it ... anyways ... I got the results I needed so for the meantime I'll stick with the vba coding =)

thanks for your time sir
May 2 '13 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Melissa | last post by:
I have a sales report where the sales are grouped by district. The report is based on a query with criteria for sales date to get the sales in any specified date range. I have code in the Format...
2
by: arrietal | last post by:
I have been trying to find a code that will help me display at the bottom of the report the number of records that where retrived for the report.
2
by: Pete | last post by:
I need to create a single query (Not a SQL query) against a single table that counts the number of records in the table, where the single field "tmp" contains specific string values If the field...
13
ChaseCox
by: ChaseCox | last post by:
Hello Everyone, I am wanting to count the occurence of different records, for example: MOT484354 PRN487522 COM45757 COM45775 PRN124872 PRN127754
5
by: Soccer5 | last post by:
Trying to Count records on a report that meet a certain criteria. Have a text box in the Report Footer that has the following in the Control Source: =Count(="S") This does not work. It...
6
markrawlingson
by: markrawlingson | last post by:
Hopefully someone can help me out with this, it's driving me nuts... I have two tables - We'll call them table1 and table2. Table1 holds event information, and table2 holds user registration data...
7
by: AccessHunter | last post by:
Hi, Please help with this problem. I have a report that displays a list of Case/Judge Records. using the following fields, Case Nbr, Case Seq Nbr, Judge Name, Attorney name 723187, 1...
5
by: phill86 | last post by:
Hi I want to be able to count records in a dao.querydef recordset but I keep getting the error message method or data member not found I have also tried to find out if the recordset is at...
7
AccessIdiot
by: AccessIdiot | last post by:
This seems like it should be really easy and I think I'm just missing something really dumb. I have a form that filters a report. At the top of the report I have a bunch of unbound text boxes that...
2
by: cambar | last post by:
Have an Access report in which Column A and Column B are checkboxes. Already have totals for each column and percentages. Now need to write an expression that will count the instances in which both...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.