You are right, there was an error in the field name. They both work now, but the page loses the patient data after I go search for the physician data. It looks like they toggle or something.
1.search for patient
2. verify patient
3. back to search page (shows patient info)
4. then doing a search for physician
5 verifying physiscian
6. back search page (shows physician, losing patient info)
Almost exactly
Open Order screen
Search for patient (open search result to verify)
Select the patient and go back to order
Search for physician (open search resutl to verify)
Select physician and go back to order
Only physician info on the order
This is the physician code part, where can I send the patId to physician.
<%
if PhysFound <> "" then
Set PhysRS = MyConn.Execute("SELECT * FROM Physician WHERE format(Physician_Id) = '" & PhysFound & "'")
PhysFName = PhysRS("Phys_First_Name")
PhysLName = PhysRS("Phys_Last_Name")
PhysMName = PhysRS("Phys_Middle_Name")
' RS.close
' set RS=nothing
end if
%>
<td width="54%"><form action="phys_search.asp" method="post" name="frmPhys" id="frmPhys">
<div align="left"> <strong>
<label>
<input name="PhysSearch" type="submit" id="PhysSearch" value="Find Physician">
<input name="txtSearchPhys" type="text" id="txtSearchPhys" value = '<%=PhysFound%>'>
</label>
<label> </label>
</strong></div>
<p align="left"> <strong>
<label>Physician First Name :
<input name="PhysFirstName" type="text" id="PhysFirstName" value='<%=PhysFName%>'>
</label>
<label> </label>
</strong></p>
<p align="left"> <strong>
<label></label>
<label>Physician Middle Name:
<input name="PhysMidName" type="text" id="PhysMidName" value='<%=PhysMName%>'>
</label>
</strong></p>
<div align="left"> <strong>
<label> Physician Last Name :
<input name="PhysLastName" type="text" id="PhysLastName" value='<%=PhysLName%>'>
</label>
</strong></div>
</form></td>
</tr>
<%
if request("patid") <>"" then
qs=qs&"patid=" & request("patid")&"&"
end if
if request("phyid") <>"" then
qs=qs&"phyid=" & request("phyid")&"&"
end if
<%
if request("patid") <>"" then
qs=qs&"patid=" & request("patid")&"&"
end if
if request("phyid") <>"" then
qs=qs&"phyid=" & request("phyid")&"&"
end if
%>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.