473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple parameters

Hello,

I use VB.NET 2003 and CR.
In a webform I have a report that has a range value parameter.
This works perfectly. What I want, is an extra parameter in the report.
This has to be discrete value parameter.
I tried several options, but I can't get it to work.
Can anybody tell me what lines of code I have to add to get the thing going?

The discrete value parameter I want to add is called 'FiliaalKeuze'.
This is the code I have so far:

Dim BeginPeriode As String
Dim EindPeriode As String

BeginPeriode = Request.QuerySt ring("BeginPeri ode")
EindPeriode = Request.QuerySt ring("EindPerio de")
Dim myReport As New RapportProducti viteitKPS

Dim myParameterFiel ds As New ParameterFields
Dim myParameterFiel d As New ParameterField
Dim myRangeValues As New ParameterRangeV alue
Dim myRangeValue As New ParameterRangeV alue
myParameterFiel d.ParameterFiel dName = "Periode"
myRangeValue.St artValue = BeginPeriode
myRangeValue.En dValue = EindPeriode
myReport.SetPar ameterValue("Pe riode", myRangeValue)
crViewer.Report Source = myReport

I can figure out that I have to add:
Dim FiliaalKeuze As String, but how to implement the code for the parameter
I don't get.

Thanks in advance,
Alison.
Feb 3 '06 #1
0 1109

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

Similar topics

1
3560
by: Steven K | last post by:
Hello, I am calling a SQL Server 2K parameter query with the following: Dim spWebDocGroup As OleDb.OleDbDataReader Dim prmWebDocGroup As OleDbParameter Dim cmdWebDocGroup As New OleDb.OleDbCommand("zsp_web_WebDocument", cnnSearch) cmdWebDocGroup.CommandType = CommandType.StoredProcedure prmWebDocGroup = cmdWebDocGroup.Parameters.Add("@strParm00",
1
1183
by: Tim::.. | last post by:
I am trying to create a multiple update for a datagrid! At the moment I have the following sub which could probably be written better but I'm new to ASP.NET and trying to get this to work first. For some reason in the second SQL update I keep getting ...::Error Procedure 'OfficePageUpdate' expects parameter '@ID', which was not supplied. Even though as far as I can see it is being supplied!
6
5001
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a PDF. It works fine so far....
16
17412
by: Nikolay Petrov | last post by:
How can I return multiple values from a custom function? TIA
12
3012
by: shank | last post by:
I'm trying to use online samples for submitting multiple records from ASP into a stored procedure. Failing! Through the below form, a user could be submitting many records at a time. I'm not getting any records inserted. For troubleshooting, I cut the form down to 1 textbox and when submitted it populated 5 rows of the same data. So I know I'm connected, but not getting the LOOP and NEXT correct? How do I set this up so many records can be...
5
5404
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in separate files for ease of maintainability. These schemas are all part of the same namespace. When defining a web service that access more than one of these entities, the wsdl file generated by BEA contains multiple schema elements with the same...
0
1179
by: Andrew Brook | last post by:
I have written a WSDL file and im experiencing a problem with specifying parameters for an operation. I was expecting for wsdl.exe to produce an abstract function with three parameters (because of something i read about using the part name = "parameters") but i just get one parameter of type GenericRequest. I suppose it's not too big a problem, but id prefer to know how to achieve multiple parameters rather than just one containing object....
4
3851
by: Nathan Sokalski | last post by:
I am a beginner with AJAX, and have managed to learn how to use it when passing single parameters, but I want to return more than one value to the client-side JavaScript function that displays it. My client-side JavaScript function takes 4 parameters (which are expected to be integers). The idea of passing a single parameter and parsing it on the client has occurred to me, but since I am sure I am not the only person who has situations that...
7
3741
by: Adam Nielsen | last post by:
Hi everyone, I'm having some trouble getting the correct chain of constructors to be called when creating an object at the bottom of a hierarchy. Have a look at the code below - the inheritance goes like this: Shape | +-- Ellipse | +-- Circle
5
34304
by: Code Monkey | last post by:
Is there anyway I can start a get a job done by starting a new thread with MULTIPLE parameters? operations only take a maximum of 1 parameter? I need a way of passing (at minimum) at least 3 parameters to the new thread. TIA
0
9687
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
10484
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
10251
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
10228
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
10027
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...
0
9072
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7565
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
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
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.