473,513 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIf function in a report form

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 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) 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 #1
1 2370
Dear Peter,

By the brief description you've given it looks like your table structure is
not very normalised. Can you please post your table structure so we can have
a look at it (remember no attachments allowed in this newsgroup). Once we
know your table structure we should be able to give you some advice in
correcting the table structure or be able to demonstrate how you can get the
results you want without using the IIF function.

With part b) of your question. You want the report to generate serial
numbers. If there are no serial numbers in the table, the report SHOULD NOT
be creating serial numbers. A serial number should be created, if the part
hasn't got one, at the time of data entry through a form. If the part has a
serial number, this should entered manually. You want the serial number to
be xxxxx xxxxxxx xxxxxx. What do the x's stand for? Numbers, letters?
Are these serial numbers going to be unique? After spending 20 years in the
engineering trade, I've seen the same serial numbers on different products
from different manufacturers. How do you want to increase the value of the
numbers? Since the report is going to create the serial numbers, how do you
stop the same serial number from appearing on a different part when
generating the same report with a different criteria?

Hope this helps.
Jeff
"Peter" <ci******@netvigator.com> wrote in message
news:cl*********@imsp212.netvigator.com...
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 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) 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
.
.
Best regard,

Peter

Nov 13 '05 #2

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

Similar topics

4
3368
by: i. dzhugashvili | last post by:
I'm hoping someone can help me here. I'm having problems using a function to get the search criteria for a column in the QBE grid. The column's data type is Long and the problem is that if I...
5
11029
by: deko | last post by:
I'd like to use a bit of code in the OnOpen event of a report: =rptOpen(Me.ReportName), (Me.Tag) --this doesn't work This does work: Private Sub Report_Open(Cancel As Integer)...
1
1535
by: Simon Matthews | last post by:
Hope someone can help an Access beginner! I've just started keeping my surgical logbook on access and it's a simple flat-file affair. I have created several queries that will list cases...
3
2098
by: Peter | last post by:
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...
2
3243
by: ThompsonJessical | last post by:
I am trying to use a button with the vba coding for SendObject Function to email a specific report based on the value of another field of the current record. The form is a continuous form and...
2
5208
by: Jason | last post by:
I am trying to create a simple database, but it's proving too complex for me!!! I have only just started a new database and am trying to have two fields in a table: the first holding the first...
0
1932
by: aakash | last post by:
Hello Guys I am upsizing ms access project to give it a ms sql connectivity I am having problem in accessing form control values in ms sql function CREATE FUNCTION "ReportList DateRange"() ...
2
5412
by: mudman04 | last post by:
Hi, I searched online for some similar issues that I am facing but was not able come up with anything. I am fairly new with Access (2 months experience) and I am trying to remove a message...
4
3203
by: cfmx2008 | last post by:
Hi everyone, I have a coldfusion form (ReportMenu.cfm) that the action page is itself as below: <cfform action="/cfreport/ReportMenu.cfm" method="POST" enctype="multipart/form-data"> and it's...
0
7257
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
7157
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
7379
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,...
1
7098
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
5682
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,...
1
5084
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...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.