Capital Letters Only In Field
Not sure if this is an ASP or HTML question, but is it possible to force a field within a form to only allow CAPITAL Letters? If so, would anyone be able to provide the generic code. I've checked elsewhere but have been unable to find.
View Replies
ADVERTISEMENT
i have a variable which holds a name like this
strname="john jones"
I want to change it to
strname="John Jones"
I want to make the first letter captital
here is my code
strname = (UCase(Left(strname,1)) + UCase(Right(strname,LEN(strname) - 1)))
it makes the whole string as capital
any idea what i am doing wrong.
View Replies
View Related
what i want to do is to put 2 fields in my table , username and password
what iwant to do is to create a page that ask you to unter your username only ,and when u click submit the other page will add new record for the username u enter and will input a randomly alpha(letters and numbers) to yr password field , so how can do this random thing throw the asp"!?!
View Replies
View Related
I'm trying to grab my form field and convert the first letter of each sentence to a capital letter, and the rest of the sentence lowercase (except for I, A etc..)
I've searched all over the place, and only came across functions that convert the first letter of every word to upper case. Now they call these proper case functions. I was taught in grade school that proper case is the first letter of a sentence is capital, and the rest are lower case. So WHY does everyone call these functions proper case functions??!!?? Ok enough venting.
Anyways if you know where I can find a similar function please help me out. I'm sure I could code this, but I just don't have the time right now, and I'm tired, and the Colts lost.
View Replies
View Related
is there any command to get first X letters from a variable ? For example if variable is SOMEWORD and i want to get first three letters of this varible the command will return SOM ...
View Replies
View Related
how do i take the four last letters of any given form input? for example hello.asp
i want a function that will give me .asp
View Replies
View Related
I want to limit a teaser-text to 100 letters and don't want to cut in the middle of a word. it should look like:
the quick brown fox jumps over the lazy....
and not:
the quick brown fox jumps over the la...
View Replies
View Related
We need to integrate an RSS feed in a webpage using ASP.
I've been testing out the great script at ByteScout:
http://bytescout.com/how_to_display_rss_using_asp.html
It worked very well, but I couldn't make it work with feeds using Norwegian characters (æ, ø, å), e.g. Aftenposten:
www.aftenposten.no/eksport/rss-1_0/
The script simply crashed.
View Replies
View Related
I have a code to create a random string of letters. The number of them can be whatever I desire.
what i would like to do, is have it both letters and integers. how would inmodify this code to allow that ....
View Replies
View Related
How do I change this output to give me numbers instead of letters: Code:
Dim intCounter, intDecimal, strTicket
For intCounter = 1 To 6
Randomize
intDecimal = Int((26 * Rnd) + 1) + 64
strTicket = strTicket & Chr(intDecimal)...
View Replies
View Related
I have a DB containing many records of customers' info. How can I pull these data to the MS Word mail merge letters containing the header (name, address, etc) and contents (description 1, 2, 3,...) page by page per record?
View Replies
View Related
how-to do a confirm textbox to match letters in an image in ASP. Code:
View Replies
View Related
i am using an online html editor to retrieve value from the database. i then make a few letters as bold and few in red colors. i now want to know can i save such words saved in different colors go into the database ms access??? can it be achieved. has anyone faced such issue before?
View Replies
View Related
How can I correct an address if the user forgets a space between the number and street name? For example, "1600Main Street" would be corrected to "1600 Main Street".
Is there a way to go step by step from the left and enter a space if I hit a letter or stop if I hit a space?
View Replies
View Related
I need a function for blocking or converting letters inserted into a Form to digits, since the Data will be used in mathematical functions.
Is there a specific seach-function for letters, or:
If Input1(not a digit) then...
Else... Input1 * 5...
?
View Replies
View Related
I have two URLs. Static.htm and dynamic.asp
Static.htm
Contains a form with two text boxes, called text_1 and text_2 and some other info that is irrelevant for my question.
Dynamic.asp
Need some code to check that the text boxes only contain values greater than 0 and only numbers. Thus if any of the textboxes for example contain -3 or the letter m I want to cancel the form submission and display some kind of error message.
How can I achieve that?
View Replies
View Related
I am using a Relational database for my site and i have the following tables:
FIXTURES, GAMEDATES
the fields in FIXTURES are:
GameDate
Home
Away
(All of the above are numerical fields)
the fields in GAMEDATES are:
DateID(integer)
GameDate(#Date Field#)
What i have done is in the GAMEDATE field in the FIXTURES table i have used the ID number of the date that i wish to assign to that record - using a LEFT JOIN to display the actual date that is pulled from the GAMEDATES table (That which corresponds to the relevant id used in Fixtures)
The problem is that in some of my code i want to display records using sql and sometimes in the where clause i use the following:
WHERE Fixtures.GameDate<=(Date())
obviously meaning WHERE GAMEDATE is LESS THAN or EQUAL to TODAY.
The thing is when i use the join it does not use the where clause and displays all of the records in the FIXTURES table.
Does any one know how to get around this, i have not received any error messages it just isnt displaying the right data
View Replies
View Related
I have a variable which holds college names
strcollege="University of California"
i want a variable to save UoC
what i meant was there are 3 words University of California
so i want the first letter in each word to be stored in a variable ....
View Replies
View Related
Im comparing values in a field while doing a loop if sAct<>myData(5,i) then At the end of the loop I make the value of sAct equal the current myData
This will work when comparing other fields withing my recordset (so I know the statement works) but it will not work for the field I want to compare. The only difference with this field is that it has null values. Could this be the problem? if so, how do I deal with nulls?
View Replies
View Related
I have a input form with 5 fields. One of the fields is MajorNo and the other is named Description.
I have a reference table in my MS Access database (tblMajor)that lists the major numbers and their descriptions.
I would like to have the description field in my ASP automatically filled based on the major number entered on the form, so the user will only need to input the major number when submitting to the Access table (tblSalesTotal).
View Replies
View Related
I am trying to pass a hidden field value on a form into another field on the
form so that it can then be inserted in the database, to enable me then to
reference that number at a later date.
(The hidden value (1 for example) would then automatically get passed to the
other input field.)
The code for the text field that allows users to type an number into it for
submission to the db is below, but what code do i need within the hidden
field to populate this text field below so that users do not have to type the
number in? Code:
View Replies
View Related
I have being working with making an edit field over the past few days. The edit function is now working fine. The edit fields that i have are for id, subject, notes, timedate.
All of the edit screens are one line text screens. What I want to do now is increase the size of the notes box to a larger textarea type box to make it easier to edit notes. The notes field in the db is a textarea field. Code:
View Replies
View Related
When you select the "Country" field in a Hotmail "get new account" link, the field "State" changes automatically, giving you the correct States that belongs to the chosen Country.
View Replies
View Related
I want to know what's the differences between
Request.Form("Field Name") and
Request.QueryString("Field Name")
OR they function exactly the same, which is to return the value of the
field??
View Replies
View Related
I would like to capture an entered value and use it in a query (Access)
Part No. __________
Do I need to store it in a variable and then can I have the query come up on the same page - they would enter a value and click a submit button. I'm not sure that I am on the right path. I'm not sure what syntax to use. Code:
View Replies
View Related
What is the correct code to use to hide a section if a specific DB field is
NULL.
View Replies
View Related
I'm trying to select all records that are true.
Code:
activerecord = -1
strsql = "select cnum from [topline data] where cnum = '" & cnum & "' and activerecord = '"& activerecord & "'"
is that right?i get this error when it equals 0. Microsoft OLE DB Provider for SQL Server error '80040e07'
View Replies
View Related
Using asp and mysql, can a text field in the db have a record with asp code in it and then display correctly on an asp page?
My experience is that it does not show anything in the <% %> tags but it shows the asp code when you view source. My coworker wants to make our website database driven and this text field was going to be the page content with html and <% if then else %> statements.
This does not work with php either so is there another field type that will parse server side scripting?
View Replies
View Related
In our ticketing system database, some fields may possible contain XML. To display a field for example, I have always used: Code:
<%=(rs_tkts.Fields.Item("CloseDesc").Value)%>
but this does not display the xml code listed. what I should do?
View Replies
View Related
Im wondering if there is any way to add a field into an MS access Table using SQL/ASP..
The reason im asking is my database online is Access 2000 (which i have at home), and im in work and they use Access 97.. so i cant download the database, add an extra field into the table, and then re-upload..
Ive tried using a Make Table, Update, Append.. but it doesnt like any of them statements..
View Replies
View Related
I need to append a field to a dbase file as part of a web application using asp/ado. I'm trying
Set oRS = Server.CreateObject( "ADODB.Recordset" )
'ors.CursorLocation = adUseClient
'ors.CursorType = adOpenDynamic
ors.Fields.Append "Index", adChar, 255 , adFldIsNullable
The problem is that the routine runs fine with no errors but the field is not added. Can someone help me out?
View Replies
View Related
I have a condition that will run depending if a field in the database is NULL. It will not run at all, and I tried various way to write it but none works so far
'not working
If assignee = DBNull Then
'not working
If assignee = null Then
'not working
If assignee = "" Then
If I write assignee to the page then the value of assignee will write if it has a value and nothing if it is null.
View Replies
View Related
i have a page that calls images from a database, that is 3 images a page but in my database i have more pictures for one record, so i want to have something like a link that will call the next field that has an image and i want it to replace the ones that i already have.
View Replies
View Related