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

Recent content by gradinumcp

  1. gradinumcp

    Query to find data for previous week

    Hi there... I am trying to get a query that can find if a Loandate falls in last week...so basically check if loandate is between sunday or monday of last to friday or saturday of lastweek... Any clues: Select * from loan where last weeks sunday<Loandate>last week's saturday. Thanks:)
  2. gradinumcp

    Date function question

    Just a quick question: How does DATEADD(d,-1,DATEDIFF(d,0,GETDATE())) represent yesterday's date... My explanation which does not fit here is that datediff will do today-0 and will return 8 as today's date is 8th. Then for DateAdd don't we need a date to do the calculation...how does it do...
  3. gradinumcp

    onclick issues

    wow--thanks j4 and clflava for your feedback. I am trying a couple of things here based on your suggestions..though I am unable to understand j4's code of innerhtml--sorry i have no clue what that is. Well now that you are bored---you can try explaining it to me...
  4. gradinumcp

    onclick issues

    Hi there...on my form, I have a text field that displays a number. I have a button next to it with the name "Change". I want to be able to click on "Change", so that the text field becomes an input field, so I can enter a different value and then the page refreshes to display the new value as a...
  5. gradinumcp

    Redirect Page1-&gt;Page2-&gt;Page3 and Page3-&gt;Page1

    Hi I have 3 pages: Page1.asp, Page2.asp and Page3.asp. On Page1.asp <A href="Page2.asp?loannum=<%=RS("loannum")%>">Send to Page2&nbsp; On Page2.asp I have an onlick to this javascript: <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function Check() {...
  6. gradinumcp

    Replace Javascript with ASP function somehow

    Ya that makes sense. Okay I will go with response.redirect...Thanks again:)
  7. gradinumcp

    Replace Javascript with ASP function somehow

    Thanks Cory.....Its weird..the current code works fine...god knows why i need to change it...any other ideas or better ways of doing it???
  8. gradinumcp

    Replace Javascript with ASP function somehow

    Hey there...I have a perfectly working code where i click a button and the onclick--directs it to a javascript function based on if there is a record in the DB or not. However my boss suggested I not use javascript and do the same with asp....any clues? <form name="Page1" method="post">...
  9. gradinumcp

    if eof in DB, direct onclick to one function otherwise other

    Hey Kaht---I had to change that coz it was erroring up on me. Now my code is: 'Check if record exists in servicing export table mySQL = "SELECT * FROM ServicingExportFields where loannum='"&request("Loannum")&"'" Set RecordCounter = Con.Execute( mySQL ) dim clickHandler if...
  10. gradinumcp

    if eof in DB, direct onclick to one function otherwise other

    Hey Kaht--that kind of works--however whether there is a record of not...it always hits function 2 and never function 1...any clue why it would do that?
  11. gradinumcp

    if eof in DB, direct onclick to one function otherwise other

    Hey Kaht...I tried the code as you told me and and it says 'clickHandler' is undefined on the line onclick="<%="clickHandler"%>" :(
  12. gradinumcp

    if eof in DB, direct onclick to one function otherwise other

    Thanks Kaht..I'll take a deeper look into the code as you explained it quite well. Iam sorry if my red text showed I was angry--i just thought becoz of my long code...probably my words were being missed out so I wrote in red....never ment to be angry at all--on the contrary I am thankful for all...
  13. gradinumcp

    if eof in DB, direct onclick to one function otherwise other

    Is my syntax to call the functions wrong?
  14. gradinumcp

    if eof in DB, direct onclick to one function otherwise other

    Still Error--its just going to page cannot be displayed---am I missing something: 'Check if record exists in servicing export table mySQL = "SELECT * FROM ServicingExportFields where loannum='"&request("Loannum")&"'" Set RecordCounter = Con.Execute( mySQL ) dim blah =...
  15. gradinumcp

    if eof in DB, direct onclick to one function otherwise other

    Kaht and DNG--the code is erroring up on me. Just want to make sure in kaht's code, the function1 and function 2 are ASP functions or javascript functions? If ASP functions--any clues on the syntax of the function and how to call it--sorry I am a newbie:(

Part and Inventory Search

Back
Top