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

Get value of Session in Record Selection

Hi,

I want two Session values in my record selection query. The come out of an
other webform.
When I do it hardcoded, it works.
How dow I do this with the Session values?

Hardcoded:
Dim strSQL As String
strSQL = "ToText({AlleProductieveProjectUrenVerdeeldOverFil ialen.Periode})
= '200409'"

strSQL = strSQL & " AND
ToText({AlleProductieveProjectUrenVerdeeldOverFili alen.Periode}) <= '200510'
myReport.RecordSelectionFormula = strSQL

What I want:
the values '200409' should be the Session.Item("BeginPeriode")
the value '200510' should be the Session.Item("EindPeriode")

Kind regards,
Alison

Nov 25 '05 #1
3 1329

--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Alison Givens" <in**@cross-it.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I want two Session values in my record selection query. The come out of an
other webform.
When I do it hardcoded, it works.
How dow I do this with the Session values?

Hardcoded:
Dim strSQL As String
strSQL = "ToText({AlleProductieveProjectUrenVerdeeldOverFil ialen.Periode})
= '200409'"

strSQL = strSQL & " AND
ToText({AlleProductieveProjectUrenVerdeeldOverFili alen.Periode}) <=
'200510'
myReport.RecordSelectionFormula = strSQL

What I want:
the values '200409' should be the Session.Item("BeginPeriode")
the value '200510' should be the Session.Item("EindPeriode")

Kind regards,
Alison

Nov 25 '05 #2
strSQL = "ToText({AlleProductieveProjectUrenVerdeeldOverFil ialen.Periode})
= '" & Convert.ToString(Session.Item("BeginPeriode")) & "'"
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Alison Givens" <in**@cross-it.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Hi,

I want two Session values in my record selection query. The come out of an
other webform.
When I do it hardcoded, it works.
How dow I do this with the Session values?

Hardcoded:
Dim strSQL As String
strSQL = "ToText({AlleProductieveProjectUrenVerdeeldOverFil ialen.Periode})
= '200409'"

strSQL = strSQL & " AND
ToText({AlleProductieveProjectUrenVerdeeldOverFili alen.Periode}) <=
'200510'
myReport.RecordSelectionFormula = strSQL

What I want:
the values '200409' should be the Session.Item("BeginPeriode")
the value '200510' should be the Session.Item("EindPeriode")

Kind regards,
Alison

Nov 25 '05 #3
Thanks very much. That did the trick.

"S.M. Altaf [MVP]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
strSQL = "ToText({AlleProductieveProjectUrenVerdeeldOverFil ialen.Periode})
= '" & Convert.ToString(Session.Item("BeginPeriode")) & "'"


--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Alison Givens" <in**@cross-it.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I want two Session values in my record selection query. The come out of
an other webform.
When I do it hardcoded, it works.
How dow I do this with the Session values?

Hardcoded:
Dim strSQL As String
strSQL =
"ToText({AlleProductieveProjectUrenVerdeeldOverFil ialen.Periode})
>= '200409'"

strSQL = strSQL & " AND
ToText({AlleProductieveProjectUrenVerdeeldOverFili alen.Periode}) <=
'200510'
myReport.RecordSelectionFormula = strSQL

What I want:
the values '200409' should be the Session.Item("BeginPeriode")
the value '200510' should be the Session.Item("EindPeriode")

Kind regards,
Alison


Nov 25 '05 #4

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

Similar topics

1
by: monika | last post by:
hi ... I have an asp page which has 3 buttons. <p align="center"><input class="button" type="button" onClick="location='welStudent.asp';" value="Click to write a new story"></p> <p...
2
by: Iona | last post by:
okay.. this should be long.. I made up a table in database with access consists of columns with text type. Some of them I put in data with numeric value and some of them I put in "Unlimited" as...
4
by: Jack | last post by:
Hi, I have a checkbox the value which goes to a database via a asp page that builds the sql string. In the front end asp page, the checkbox code is written as follows: <i><input...
4
by: Martyn Fewtrell | last post by:
I want to update a database record with a number of fields - doesn't sound to difficult at this stage! I have a system to select the correct record from the database and load the data into a...
12
by: Aidan | last post by:
I have a form to create a new record for a training course. The form is based on one table that has 4 keys set to primary key. The first combo box on the form allows selection of the course POP...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
7
by: =?Utf-8?B?U21pdGE=?= | last post by:
Iam fairly new to .net programming. I have a listbox with multi-select option. If page not postback, i do the data binding. On selection of values, i save it in a session varible as this is used my...
2
by: preeti13 | last post by:
Hi guys i am here with my another probelm please help me.trying insert the value into the data base but getting the null value error .I am getting thsi error Cannot insert the value NULL into...
2
by: Vahagn | last post by:
Hi, how do I retrieve the chosen value from a RadioButtonList? I have a RadioButtonList that is populated dynamically with a "Next" button. Ie, I have a list of questions each with 2-3 answer...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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...

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.