473,654 Members | 3,109 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 2384
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******@netvi gator.com> wrote in message
news:cl******** *@imsp212.netvi gator.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
3377
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 want to search on more than one value my function in the QBE correctly returns "1 Or 4" (for example), but something's getting garbled and I'm not getting the same data back if I just enter "1 Or 4" (w/o quotes) in the QBE grid. My guess is that...
5
11052
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) modHandler.rptOpen (Me.Report.Name), (Me.Tag) End Sub
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 performed at different hospitals and reports based on the queries to print out the relavent details. What I would like to do is have a summary sheet in the Report Footer section that lists a grid of each type of procedure performed as well as the...
3
2102
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 group row of a report form as below: sss is a string field with 2 characters; the function is = IIf(="1", "yes","no")
2
3261
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 the values are either of the field are "IACUC" or "IBC". If the value is IACUC, I want the IACUC report to send, if IBC the IBC report to send. The email button is located on the continous form details with the record specified and report is...
2
5216
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 name of a person (FirstName) and the second to be the first charactrer of that name. i am using the default value property for the second field of "=Left(,1)", but i am getting error messages when tryign to save it.
0
1940
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"() RETURNS TABLE AS Begin RETURN
2
5423
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 stating, ENTER PARAMETER VALUE when I am generating a report. I know that the culprit lies in the query stored in the report. I have entered data in the CRITERIA (entered forms!frmproducts!lngproductID) window and OR (entered...
4
3211
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 button: <input type="Submit" value="View Report" class="button" name="submit" > <!--- onclick="MM_openBrWindow('','','toolbar=yes,scrollbars=yes,width=910,height=600')" --->
0
8372
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8814
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8706
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8475
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8591
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6160
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2709
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.