Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP(match values of two table )

ASP(match values of two table )

Scheduled Pinned Locked Moved Web Development
databasesysadmincollaborationregexhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajiv_kadam
    wrote on last edited by
    #1

    i m displaying projectdescription whose id is retreived frm previous filename.i have two tables in my database. i m checking if both the id is matched then it should show me the description otherwise not and should display some message. if id is matched then it works fine. but if id is not matched of both the table with one another then it gives error '80020009' here is my code <% opendatabase conn id=request("id") session("id")=id sql="select * from projectdescription where id="& id set obj=server.createobject("adodb.recordset") obj.open sql,conn,1,1 sql3="select * from schemedescription where projectid="& id set obj3=server.CreateObject("adodb.recordset") obj3.open sql3,conn,1,1 response.Write("id is "& obj("id")) if obj3.eof=true then response.Write("record not found") response.Write("[View Project](project.asp?id=" & obj("id") & ")   ") elseif obj3.eof=false then response.Write("record found") end if if obj.eof=true then response.Write("rec not found") elseif obj.eof=false then response.Write("rec found") end if if obj("id")=obj3("projectid") then response.Write("[View Project](project.asp?id=" & obj("id") & ")   ") response.Write("[View Scheme](scheme.asp?id=" & obj("id") & ")   ") response.Write("[View Team](team.asp?id=" & obj("id") & ")") ' else ' response.Write("id is not match") end if %>

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups