private void PopulateVRTable(String patID)
	{
		ResetVRTable();
		
		
//		ResultSet rs = dbQuery.Doctor_GetPatientList(this.user.DoctorID, true, txt_FirstName.getText(),
//				txt_LastName.getText(), 
//				txt_PatientID.getText(),
//				"2013-01-01 00:00:00",
//				"2015-01-01 00:00:00");
		//			"YYYY-MM-dd HH:mm:SS");

		System.out.println("HERE2! - " + table_Patients.getSelectedRow());
		
		if(table_Patients.getSelectedRow() == -1 
				|| table_Patients.getValueAt(table_Patients.getSelectedRow(), 0).equals("no"))
			return;
			
		System.out.println("HERE3!");
		ResultSet rs = dbQuery.Doctor_GetFilteredVRList(chckbxAllowArchivedRecords.isSelected(), patID,
				txt_Diagnosis.getText(),
				txt_Comments.getText(),
				txt_Procedure.getText(),
				txt_Prescription.getText());
		
		
		//System.out.println("Querying doctor appointment schedule for doctorID: " + selectedDoctor.getID() + "!");
		
		Object[] row = new Object[VR_TABLE_COLUMN_COUNT];
		try {
			while(rs.next())
			{  
				//SimpleDateFormat dateFormat = new SimpleDateFormat("MMM dd YYYY");
				//SimpleDateFormat timeFormat = new SimpleDateFormat("h:mm a");
				
				//"isArchived", "DoctorName", "ApptDate", "Procedure", "Diagnosis", "Prescription", "Comments", "Entered Date"
				if(!chckbxAllowArchivedRecords.isSelected()){
					row[0] = "no";
				}
				else{
					row[0] = rs.getObject("isArchived");
				}
			    row[1] = rs.getObject("DoctorFirstName") + " " + rs.getObject("DoctorLastName");
			    row[2] = rs.getObject("AppointmentDate");
			    		
			    row[3] = rs.getObject("ProcedureName");
			    row[4] = rs.getObject("Diagnosis");
			    row[5] = rs.getObject("Prescription");
			    row[6] = rs.getObject("DoctorComment");
			    row[7] = rs.getObject("EnteredDate");
			    
			    
			    ((DefaultTableModel) table_VR.getModel()).insertRow(rs.getRow()-1, row);
			}
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			System.out.println("ERROR: loading doctor vr table!");
			e.printStackTrace();
		}
		
	}