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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: KingElvis
  • Order by date
  1. KingElvis

    Losing the cookie on form reload

    How does one retain the value of a drop-down box when the form is re-loaded after a verification routine? I have a dropdown box: <select name="shiurFreq" size="1" tabindex="8" onchange="if(this.selectedIndex == 1) {document.Frontpage_form1.shiurDateText.style.display='inline'...
  2. KingElvis

    Constructing valid date from 3 sets of numbers

    I wish to convert 3 numbers (for example, 10, 5, 2004) to a date and then subtract that date from today's date. I tried writing something like this enteredDate = cInt(Request.Form("smonth")) & "/" & cInt(Request.Form("sday")) & "/" & cInt(Request.Form("syear")) response.write date -...
  3. KingElvis

    Error in SQL search of populated dropdown box

    Simonchristieis, this is about the 4th time you've helped me out! I owe you one!
  4. KingElvis

    Error in SQL search of populated dropdown box

    Guys, please help a beginner! I can't find where I'm going wrong. I have the following dropdown box: <select name="mLast" size="1" tabindex="8"> <option selected>Any Speaker</option> <%=SF_GetSpeakerSELECT(Request.Form("mLast"))%> </select> This is populated by the following code...
  5. KingElvis

    Syntax error in INSERT INTO statement

    The square brackets did it! Two hours of struggling completed! Thanks
  6. KingElvis

    Syntax error in INSERT INTO statement

    Yes, but the ACCESS database has the field defined and TEXT and I'm entering it as text... not as a date!
  7. KingElvis

    Syntax error in INSERT INTO statement

    When trying to insert a record into an Access database, I get the following error message: strSQL:INSERT INTO shiur (username,slanguage,shiurFor,shiurType,sTitle,mTitle,mFirst,mLast,shiurFreq,date,time,sduration,venue,city,contact,comments,add_date,status) VALUES('smith',2,1,3,'Something...
  8. KingElvis

    Drop-Down Box - where does one call the cookie?

    When the user submits the page, a validation routine is run. If there is an error, the page refreshes WITH all the previously entered data. Thus, if he selected "10 mins", but the validation routine finds an error on some other entered data, then the refresh screen should still show "10 mins
  9. KingElvis

    Drop-Down Box - where does one call the cookie?

    Where in the code for a Drop-Down Box, does one place the ASP code for a cookie? When I place it as shown below, I get an error message. <select size="1" name="sDuration"> <option selected>Duration</option> <option>05 min</option> <option>10 min</option>...
  10. KingElvis

    Forcing a user to enter correct time (hours/minutes)

    Tarwn, Thanks for the advice, but could you elaborate a bit more. Give some more code so that I can understand. I am a beginner! Thanks
  11. KingElvis

    Forcing a user to enter correct time (hours/minutes)

    Is there a way to ensure (and verify) that a viewer inputs the correct time - hours and minutes - WITHOUT having to put drop-down boxes on my page. I could place two drop-down boxes on the page (one for the hours and one for the minutes), but ideally, I would like to see just an Input Box with...
  12. KingElvis

    Making INPUT Box visible/hidden

    Yes. That would be OK
  13. KingElvis

    Making INPUT Box visible/hidden

    I have an OPTION Box and an INPUT Box. When someone chooses as specific OPTION, then the INPUT Box must become visible, otherwise it must remain hidden. I've tried the code below, but it doesn't work. Any advice? <select name="Style"> <option selected>--Select Style--</option>...
  14. KingElvis

    ASP variables in a Javascript popup window

    I have a popup window that currently works for a specific 'surname' entry. <a href="javascript:popup('send_email.asp?surname=<%=rsUsers("surname")%>',360,400,'no')">Send EMail</a> My problem is how to write the same code using a surname AND first name. I seem to be having problems with the...
  15. KingElvis

    Uploading a table into ACCESS database

    Is it possible to upload a single ACCESS table that resides on my local computer, and insert it into an ACCESS file that resides on a Web server? NOTE: I don't want to upload the entire ACCESS file (which is over 50 mb in size). I just want to upload a smaller table. If this is possible...
  16. KingElvis

    email verification- problem with instr() function

    I'm using the simple code below to verify an email address. However, the line that reads If InStr(1, email, ".", 1) < 4 Then returns emailOK = 1. Is there a syntax problem? Seeing that I am looking for the character "." I am not sure if the 'compare' parameter of inStr() be 1 (textual...
  17. KingElvis

    Populating Drop_Down Box from INCLUDE FILE, NOT DB

    I have an include file with the following variables: name1 = "Tom" name2 = "Dick" name3 = "Harry" etc.... I now want a drop down box to include these names as options. Can't seem to get the syntax right for the Drop-Down box.
  18. KingElvis

    Using a variable in Server.MapPath

    What a boykie!! Thanks
  19. KingElvis

    Using a variable in Server.MapPath

    Can one use a variable in the Server.MapPath definition? And if so, what would the correct syntax be? I have a line of code that reads: strDBPath = Server.MapPath("..\..\db\masterdb.mdb") I want to use a variable for the db file name eg: currentDb = masterdb.mdb

Part and Inventory Search

Back
Top