Greater Than Less Than

I'm trying to write a zipcode validation. I want to validate if the zip is less than 5, then error, and if zip is greater than 5 but less than 10 then error. here is what I have, it's not working:Code:

If Len(zip) < 5 Then
r7 = "<img src=""removeX.gif"">"
InputError=InputError+1

else
If Len(zip) > 5 AND Len(zip) < 10 Then
r7 = "<img src=""removeX.gif"">"
InputError=InputError+1

View Replies


ADVERTISEMENT

GReater Than

How do i check if one form value is greater than another in a request.form?

View Replies View Related

Mac IE 4.5 And Greater

I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk for my session variable based security scheme.

Basically, the risk is that a user will login to my site, close the window when done and allow someone else to come up to the machine, go back to my site and be logged into the previous user's account.

how to make session variables disappear when a window closes? Am I going to have to redesign my whole security scheme?

View Replies View Related

Greater Or Lesser Than Search

I have a database with a field called "Value" in one of my tables. This field is just set as number. I want to be able to search this field so that users can bring up records in the database.

How can i get it working so that instead of have a long dropdown list of all the values i can just have a search that offers the user the option to use Greater than "A Value" or Less Than "A Value".

View Replies View Related

Date Greater Than Today

I am trying to write an ASP SQL for a date greater than today:

Here is my SQL Statement:

Select * from table ORDER By date ASC

date is the field that stores the date. I want to retrieve all records with a date treater than today.I have tried a number of things but nothing seems to work. By the way I am using SQL server and not Access.

View Replies View Related

Record Is Greater Than 150 Days

I know the UPDATE sql, all I need is to figure out how to get all the records, see what their date is, and if their date is greater than 150 days (dateDiff) execute the command code. How would I do this?

P.S. It's for a 'auto-archive' script...set the field Archive value to 'Yes'...

View Replies View Related

Issue With Greater Than IF Statement

When using the following statement, I am encountering a problem:

<% If rs.Fields(0) = "Lead 30 Day" THEN %>
<% IF rs.Fields(2) "89" THEN %>
Pass
<% ELSE %>
FAIL
<% END IF%>
<% End If %>

rs.Fields(2) is a numerical value, in this case 100. For some reason,
the page is still displaying "Fail" for the record, even though 100 is
obviously larger than 89.

Any ideas on why it would think 100 is less than 89?

View Replies View Related

How To Show An Image Where Height Nog Greater Then Xx But Do Not Stretch

I need to show an image in the header of an asp page. If the image's width
is greater then 82 pixels, the header gets mis-formed. If I specify the
height for the image and it is smaller then 82 pixels it gets stretched and
misformed.

How do I solve this? At first I planned to write a vb-dll that checks the
image's height but since the image come's as a BLOD from sql-server tat is
a no-go.

Can I find the original height in the binary data from the blob itself?

View Replies View Related

Combobox :: Selected Month Should Not Be Greater Than Current Month

I m having two combobox on my page cmbyear(years) and cmbmon(months). i want to make a check that if year selected is current year then selected month should not be greater than current month. how we can achieve this.

one way out is that we can store values of selected options in two variables in javascript function. In the function we can make the check that if selected value for year is current year and selected value for month is greater than current month then it ll show some error message and reload the page.

i m trying this but do not get results. May be i m having some mistake in syntax. can anyone tell me how to get selected value in a variable in javascript or some other way out to achieve this. I have applied same technique on text box value. its working fine. but with combobox. i dont know whats the prob.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved