473,394 Members | 1,865 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.

An easy one I hope

I want to redirect to a page if a variable is greater than 1 so I'm using
the following code but get an incorrect syntax error, can somebody please
tell me the correct syntax?

Cheers.

Code:

If iRecordCount = >1 then
response.redirect "test.asp"
End If
Jul 19 '05 #1
2 1292
Miguel Orrego wrote on 19 aug 2003 in
microsoft.public.inetserver.asp.general:
I want to redirect to a page if a variable is greater than 1 so I'm using
the following code but get an incorrect syntax error, can somebody please
tell me the correct syntax?

Cheers.

Code:

If iRecordCount = >1 then
response.redirect "test.asp"
End If


It is not English free-for-all, but a computer language:

If iRecordCount > 1 then
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
"Miguel Orrego" <mi****@stressedmonkey.net-nospam> wrote:
I want to redirect to a page if a variable is greater than 1 so I'm using
the following code but get an incorrect syntax error, can somebody please
tell me the correct syntax?

Cheers.

Code:

If iRecordCount = >1 then
You seem to have left a space between the equal sign and the greater
than sign, and you've got them in the wrong order. You're trying to
say "greater than or equal". The symbol for that is two characters: >=
with no space. So:

If iRecordCount >= 1 Thenresponse.redirect "test.asp"
End If

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 19 '05 #3

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

Similar topics

9
by: Dave Smithz | last post by:
Hi, Summary: Best way to divide out the HTML and PHP in some code I inherited. How can I keep the HTML files separate? Full Details: I've now been working two weeks on PHP / MySQL code I...
3
by: Sune | last post by:
I'm working on a system that requires alot of date handling, and i'm getting pretty tired of doing custom calculating when modifying dates, so i hope someone would be able to help me. Is there any...
8
by: Adam Clauss | last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to get them all added to the solution. Preferable would be that the...
2
by: Thomas | last post by:
Hi, I there anybody here that are designing applications with asp.net without html in aspx files? The problem is that aspx files is a dependency, and I would like to avoid having that...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
2
by: tnks | last post by:
hi i have a data grid (i fill when i run the program) then the user insert rows and i wana save.. i used SqlClient.SqlCommandBuilder but it fail, just save 1 recordr, some times 2 records,...
10
by: cj | last post by:
I have lots of tables to copy from one server to another. The new tables have been created to match the old ones. I practiced with one table. I created the select command (select * from tableA)...
1
by: Alex | last post by:
Hi I'm wondering if there is an easy way to analize log files in php? I'm sure there is a program somethere on the internet. If anyone can point me to one it would be great. I have a log file...
6
by: graeme g | last post by:
hi how would i write the following in switch case statement: if (x < 40) y = 0; else if (x < 65) y = 1; else if (x < 80) y = 2;
4
by: n | last post by:
Hello! Here is a problem I hope you can point me to a solution. It Problem: A teacher needs to know which lesson to teach. A school has a curriculum with 26 lessons, A-Z. For a given class,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.