Quote:
quote:Originally posted by sherr8
Quote:
|
quote:Originally posted by sherr8
|
Quote:
Ok great!! I got it to work! However, it is not display the correct information for each estimate number. Is there a reason to this? Thanks so much :)
slypunk
|
Does anyone know why it's not giving me the right information for each estimate number? Thank you
slypunk
|
I got this to work I used a hidden variable and it worked now I am working on the search function which is giving me the Contract Not Found message.
function searchContract()
' Local Recordset
dim rsLocal
' Search for a contract
response.write "Ok now we are addding the estno check to the DISPLAY recordset"
response.write "instead of adding it to the dropdown"
response.write "LETS SEE IF WE ARE GOOD TO GO: " & strEstimateNum
'response.end
Set rsLocal = FindEstimateContracts(strContractNum, strEstimateNum)
' Check for end of file (eof)
if strEstimateNum="" then
sql= "Select * from tblEstimates where contno=strContractNum"
sql= SQL & "order by estno"
%>
<script language=javascript>
alert("Contract Number Not Found");
</script>
<%
if strEstimateNum <>"" then
FindEstimateContracts
'same as below
'response.write "<script language=javascript>alert('Project Number Not Found');</script>"
else
contno = rsLocal("contno")
estno = rsLocal("estno")
contractor = rsLocal("contractor")
estamt = iif(isnull(rsLocal("estamt")), 0, rsLocal("estamt"))
retainage=iif(isnull(rsLocal("retainage")), 0, rsLocal("retainage"))
otherdeduct=iif(isnull(rsLocal("otherdeduct")),0, rsLocal("otherdeduct"))
netestamt=iif(isnull(rsLocal("netestamt")), 0, rsLocal("netestamt"))
amttodate=iif(isnull(rsLocal("amttodate")),0, rsLocal ("amttodate"))
rsvdcontamt=iif(isnull(rsLocal("rsvdcontamt")),0, rsLocal("rsvdcontamt"))
estdate=rsLocal("estdate")
perenddate=rsLocal("perenddate")
eststatus=rsLocal("eststatus")
prelimrsvd=rsLocal("prelimrsvd")
projmgrapproval=rsLocal("projmgrapproval")
contractorsigned=rsLocal("contractorsigned")
assistdirector=rsLocal("assistdirector")
cmdchief=rsLocal("cmdchief")
staffdone=rsLocal("staffdone")
contreviewapproval=rsLocal("contreviewapproval")
receiveddate=rsLocal("receiveddate")
submittoap=rsLocal("submittoap")
checkdate=rsLocal("checkdate")
checkno=rsLocal("checkno")
recfromap=rsLocal("recfromap")
comments=rsLocal("comments")
paiddate=rsLocal("paiddate")
trackingnum=rsLocal("trackingnum")
end if
end if
set rsLocal = nothing
end function
But it's giving me this message now:
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
I might be missing something which I do not know what it can be. Any suggestions?? THank you for your time
slypunk