Time Field Help

S

Simon Gare

Hi all,

I have a time field that starts at 00:00 through to 23:59 problem is the
list is too long. I would like to have 2 dropdown fields HOURS & MINUTES
that join together when the form is submitted and enters the time into the
SQL db.

Any help would be appreciated.

Regards
Simon
 
B

Bob Barrows [MVP]

Simon said:
Hi all,

I have a time field that starts at 00:00 through to 23:59 problem is
the list is too long. I would like to have 2 dropdown fields HOURS &
MINUTES that join together when the form is submitted and enters the
time into the SQL db.

Any help would be appreciated.
What is the name datatype of the column?
 
L

Larry Bud

Simon said:
Hi all,

I have a time field that starts at 00:00 through to 23:59 problem is the
list is too long. I would like to have 2 dropdown fields HOURS & MINUTES
that join together when the form is submitted and enters the time into the
SQL db.

Any help would be appreciated.

Why not just let the user type in the hours and minutes?
 
S

Simon Gare

Problem Solved

Hidden Field

<%Request.Form("lstHours")%>:<%Request.Form("lstMinutes")%>


Thanks Anyway

Regards
Simon
 
E

Evertjan.

Simon Gare wrote on 03 jun 2006 in microsoft.public.inetserver.asp.general:
Problem Solved

Hidden Field

<%Request.Form("lstHours")%>:<%Request.Form("lstMinutes")%>

You could not have tested this as working,
because you missed the =.

Try:

value =
'<% = Request.Form("lstHours") %>:<% = Request.Form("lstMinutes") %>'

or [I would prefer that]:

value =
'<% = Request.Form("lstHours") & ":" & Request.Form("lstMinutes") %>'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top