public float retrieveSupplierAmount(String supName) throws SQLException{
        float getAmount = 0;
        try{
            databaseConnector=myConnector.getConnection();
            stmnt=(Statement) databaseConnector.createStatement();
            
            SQLQuery="SELECT Amount FROM familydoctor.supplier WHERE Name="+"'"+supName+"'";
            dataSet=stmnt.executeQuery(SQLQuery);
          
            while(dataSet.next()){
                getAmount=dataSet.getFloat("Amount");
            }
        }
        
        catch(SQLException e){
            System.out.println(e.getMessage());
        }
        
        finally{
            if(stmnt!=null)
                stmnt.close();
            if(databaseConnector!=null)
                databaseConnector.close();
        }
        
        return getAmount;
    }