473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Returning Value of Parameter

jimleon
74 New Member
I have set the following line as filter criteria for my query -

Like "*" & [Enter Code: (* for all)]


It prompts for a code letter or an * for all codes. Is there anyway of returning what was entered so I can use that value in an 'iif 'statement?

Thanks in advance guys
Jan 18 '07 #1
7 1600
jimleon
74 New Member
Thats should actually read 'Returning value of parameter' Oooopps
Jan 18 '07 #2
ADezii
8,834 Recognized Expert Expert
I have set the following line as filter criteria for my query -

Like "*" & [Enter Code: (* for all)]


It prompts for a code letter or an * for all codes. Is there anyway of returning what was entered so I can use that value in an 'iif 'statement?

Thanks in advance guys
A Calculated Field with the specific Parameter Prompt would return what the User entered, as in:
Expand|Select|Wrap|Line Numbers
  1. UserReturn: [Enter Code: (* for all)]
Jan 18 '07 #3
nico5038
3,080 Recognized Expert Specialist
Just use the same [Enter Code: (* for all)] in your IIF statement.
Access will replace all found references to [Enter Code: (* for all)] with the entered value.

Nic;o)
Jan 18 '07 #4
NeoPa
32,556 Recognized Expert Moderator MVP
Thats should actually read 'Returning value of parameter' Oooopps
No Problem - already sorted.
Jan 19 '07 #5
NeoPa
32,556 Recognized Expert Moderator MVP
I have set the following line as filter criteria for my query -

Like "*" & [Enter Code: (* for all)]


It prompts for a code letter or an * for all codes. Is there anyway of returning what was entered so I can use that value in an 'iif 'statement?

Thanks in advance guys
Nico's answer is what you need here but I wanted to draw your attention to the wording.
Surely it should say "[Enter Code: (Blank for all)]" or some such like.
Jan 19 '07 #6
jimleon
74 New Member
That works well now. Thanks guys.
I was under the impression (incorrectly) that each instance of ' [Enter Exhibition Code: (* for all)] ' would prompt for the parameter again.... but i t doesn't!
Jan 19 '07 #7
NeoPa
32,556 Recognized Expert Moderator MVP
Please note my comment in Post #6.
Also, you have to be careful when using a prompt multiple times in your query to make sure it is duplicated precisely. Any differences will cause the parser to treat it as two separate prompts (and values of course).
Jan 19 '07 #8

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

Similar topics

11
by: Savas Ates | last post by:
CREATE PROCEDURE st_deneme @userid numeric (18) ,@result numeric (18) output AS select * from users return "10" GO **************************** <!--METADATA TYPE="typelib" NAME="Microsoft...
4
by: Roger Redford | last post by:
Dear Experts, I'm attempting to marry a system to an Oracle 817 datbase. Oracle is my specialty, the back end mainly, so I don't know much about java or javascript. The system uses javascript...
5
by: vivienne.netherwood | last post by:
I am developing an Access Project front end with a SQL server database. I have written a stored procedure that returns a record set and also a value via an output parameter. The procedure is as...
15
by: Daniel Rudy | last post by:
Hello, Consider the following code: /* resolve_hostname this resolves the hostname into an ip address. */ static void resolve_hostname(char result, const char hostname, const char server) {
9
by: Thomas Mlynarczyk | last post by:
Hi, It seems to be a generally adopted convention to have a function return FALSE in case of an error. But if a function is supposed to return a boolean anyway, one cannot distinguish anymore...
4
by: David Lozzi | last post by:
Howdy, I'm using a WYSIWYG editor called TinyMCE. When I edit some text and then save it back to my SQL server using a SQLCommand, all HTML characters are changed to HTML code, i.e. &gt;strong&lt;...
17
by: I.M. !Knuth | last post by:
Hi. I'm more-or-less a C newbie. I thought I had pointers under control until I started goofing around with this: ...
8
by: Martin Z | last post by:
INSERT INTO dbo.Transmission (TransmissionDate, TransmissionDirection, Filename, TransmittedData) VALUES (@TransmissionDate,@TransmissionDirection,@Filename,@TransmittedData); SELECT @retVal =...
8
by: Mike P | last post by:
How do you return a datareader from a stored procedure, but also return an output parameter? Here is my code, which is just returning a data reader at the moment : _conn.Open(); SqlCommand...
8
by: roundcrisis | last post by:
Hi all: I m trying to get the return value of a stored procedure with .... DbCommand command = connection.CreateCommand(); command.CommandText = "Exec some_SP"; command.CommandType =...
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
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
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...
1
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
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,...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.