473,396 Members | 1,725 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,396 software developers and data experts.

IIf function problem and serial number for each records on the report

Dear all,

Would you tell me how to solve the following two problems in an access file
upon preparing report form:
a) I have written an IIf function for a string field at the beginning of
group row of a report form as below:

sss is a string field with 2 characters;
the function is = IIf([sss]="1", "yes","no")

Problem: the report only shows the "#¿ù»~"

If the function is =IIf([sss] Is Null, "yes", "no"), the result is
only showing "yes" for all records.
b) How can I list out the records on the report with serial numbers if
there is serial numbers for the records in the table?
Thank you!!

Peter

Nov 13 '05 #1
3 2091
Peter wrote:
a) I have written an IIf function for a string field at the beginning of
group row of a report form as below:
Unless others have figured out exactly what you mean, post your SQL from
your query.

b) How can I list out the records on the report with serial numbers if
there is serial numbers for the records in the table?


What is the structure of the table in question?

--
Tim - http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #2
Dear Tim,

a) I generate a report from a query table, then I want to use this
report
to show the total numbers of the customers who buy the goods. There is a
string field "choose goods" in the table. Such field only contains either
"1" or "". Therefore, I write the IIF function on the report form at the
beginning of group row:

=IIf([choose goods]="1", "No. of customer to buy the goods", "No. of
customer not to buy the goods")

The expressed result is : No. of customer to buy the goods
99999
No. of customer not to buy the
goods 99999

However, the result is "#??" 99999
"#??" 99999
b) I make a mistake on my question. There is NO a field to indicate the
serial number of the records in the original table. As I want to general a
report from a query table under certain conditions, only some records will
be selected. How can I general the serial numbers for each records on the
report, such that:

1 xxxxx xxxxxxx xxxxxx
2 xxxxx xxxxxxx xxxxxx
3 xxxxx xxxxxxx xxxxxx
Nov 13 '05 #3
To question B

My way to do this is to put in the Table a numeric field with name
"DumNr" or so, with only "one" in it, I mean the number 1. DefaultValue
also put to 1.

If you create this field afterwards you could find this action query
useful:

update mytable set dumnr = 1

In a query you have to generate an extra field like this:
dumnr: 1

In any report where I want to number the rows I put a textfield with any
name, the Property ControlSource set to dumnr and the property
RunningSum set to 1 or 2.

1 will restart numbering again and again after every grouping.
2 will number all rows in the report without restarting.

This works in a report. I didn't find a way to do the same in a query

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
1
by: MLH | last post by:
I have a challenge... In a table I call tblStuff4Letters with 3 fields: , and . I have a report called rptOutboundCorrespondence that feeds off this table. Sorting & grouping is turned on in...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
1
by: Melissa | last post by:
I created a report that is grouped and I set it to go to a new page after each section. Each page will have a different number of records. I have a function that looks at the number of records and...
1
by: Peter | last post by:
Dear all, Could you give me a hint? a) I generate a report from a query table, then I want to use this report to show the total numbers of the customers who buy the goods. There is a string...
9
by: indrag91 | last post by:
i am retrieving 10 records out of 50 records from the access database using dataenvironment based on some condition. Now i want to place the serial number in the data report. Please give ur...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
19
by: Coastie | last post by:
Good afternoon- There is a table with the following fields: PK*, Equipment_ID, Battery_Serial *= arbitrary primary key Each piece of equipment has between 0 and 3 batteries, and each battery...
18
by: ashutoshvyas | last post by:
I want to write such criteria in the query of microsoft ACCESS, which can give records with secondlast date? table & fields............desired output no-name-date..............name-date...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.