Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Drop Down

Status
Not open for further replies.

timdodgson

Technical User
Jun 12, 2000
111
GB
Hi i have 2 questions

I have managed to get adrop down to populate from my access db but some of mr recordsare blank so it puts blanks in the drop down how can i filter this out
and next question is there a way i can auto xcapatilze the returned values

Many Thanks in Advaance
Tim Dodgson
 
leave them out of the recordset,

WHERE field <> "";


set proper case function
Code:
function Proper(strIn)
' function for setting proper case 
' for a single line of text
if instr(strIn,vbCrLf) > 0 then
'	if string contains CR call MultiLine function
	Proper = MultiLineProper(strIn)
	exit function
end if
dim words
dim i
words = Split(strIn," ")
for i = 0 to ubound(words)
	words(i) = Capitalise(words(i))
next
if ubound(words) > 0 then
	for i = 0 to ubound(words)
			if i = 0 then
				Proper = Proper & words(i)
			else
				Proper = Proper & " " & words(i)
			end if			
	next
else
	Proper = Capitalise(strIn)
end if
end function

' capitalise first letter of string sent
function Capitalise(strText)
Capitalise = ucase(left(strText,1)) & lcase(mid(strText,2))
end function

Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top